Closed crazyvinvin closed 1 year ago
the first one is an issue while saving villager data, the second one is probably because it was too fast, maybe it would need to yield or just store last cycle time, and prevent cycling based on times between cycles
Fixed in dev
Hey there,
We're running a script that checks if a villager trade is the one that we want, else it cycles trades. This happens WITHOUT yielding (I think cycle trades should probably yiels), which for now makes it really quick (like 100k cycles in a second, so that we can find our efficiency 5 trade for 17 emeralds ;)
However, this has been A LOT of exceptions like this:
This is of course not a good thing, but we didn't even notice these exceptions until another exception crashed our server (causing a bit of panick). The exception looked like this:
I think we can make sure the second exception (which caused the server to crash) doesn't happen just by yielding, however this makes our script take 40 minutes to perform 35k cycles (which is what it took to get efficiency 5 cheapest trade), instead of less then a second.
If you need the lua script we're running for further investigation, just let me know.