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

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

0 like 0 dislike
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.
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


12.7k users

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