Please enable / Bitte aktiviere JavaScript!
Veuillez activer / Por favor activa el Javascript![ ? ]
Where did I go wrong in the function checkCells()? - bug-code.com Q&A

Where did I go wrong in the function checkCells()?

0 like 0 dislike
8 views
Write a control program in Lua for a nuclear reactor in minecraft using mod OpenComputers.
Wrote a few functions that check for conditions that should be satisfied for operation of the reactor.
The problem is that any empty slots in the inventory of the reactor in addition to slot indices of 1.14, 12 and 1 some. The function returns false. Also, when the output for the false part of the function transferCells, which is responsible for loading of the cells does not work. But works correctly if the function returns false and more than 1 slot empty. I can't understand where I went wrong.
Code https://pastebin.com/2XEy4eb4
asked by | 8 views

Please log in or register to answer this question.

Welcome to Bug-code Q&A, where you can ask questions and receive answers from other members of the community.

24.8k questions

46.2k answers

0 comments

12.7k users

24,788 questions
46,220 answers
0 comments
12,715 users