Started by
PopcatCookie
on
Topic category: Troubleshooting, bugs, and solutions
When I launch the integrated local server to test my mod, the local server crashes after 10 minutes and says it ran out of memory, even though I gave more RAM in Preferences settings. I have the same problem on other minecraft servers with the mod. This problem came out of nowhere while I was developing my mod as usual and I can't figure out what does the problem comes from. Please help !
Do you do any heavy procedures?
Yes, this one, this may be why it's very laggy
https://imgur.com/a/k6Up9os
But the entire procedure is in a if statement with the condition "does entity exist in square cube of 200 of type Player" so I thought it would be okay
A square cube of 200 is 200*200*200 block locations to check.
This is 8000000, that is right, 8-million checks every time you call the procedures