I think I know what the problem is but I dont know how to fix it: the method blockOccupied is searching through json files and I am using the method way to often when going through the for loops so it stops responding. How do I fix that tho? Error and Code: https://gist.github.com/ItzJustNico/a8e3b3980479d38e93168a7e43051422
#Server crashing because of iterating through Json files
1 messages · Page 1 of 1 (latest)
your maxRuns is useless
you have to define this outside the while loop
right now you just initialize it to int maxRuns = 1 every while loop iteration
and then check if maxRuns == 5 after incrementing it once
ohhh let me try and fix