For Loop is skipped every time

Started by Terandox, Jun 03, 2021, 05:36 pm

Previous topic - Next topic


I'am creating an Storage System, but im not able no get it to work, because 1 for loop is skiped every time.

I tried 36 Hours to fix it but i cant... please help

here is my code:

this is the skiped for loop:
Code Select
for slotID,slot in pairs(myslots) do
 local counterC=chests[].chest.getItemDetail(slot).count
 if counterC > remainder then counterC = remainder end
 print("counterC : "..counterC)
 local debug= pushto(slot,,,counterC,nil,false,false,false,item)


Where is getSlots defined? It might be returning an empty table.