Closed RelativoBR closed 1 year ago
Any chance you could provide a timings report?
pretty sure its this
Bukkit.getScheduler().callSyncMethod(Supreme.inst(),
() -> l.getWorld().getNearbyEntities(l, mobRange, mobRange, mobRange, predicate).isEmpty())
on line 82. the docs mention there is a 10ms latency until the isDone() method returns true, idk if that means it takes 10ms to execute, or 10ms to register that it executed. could also be that getNearbyEntities is just really laggy
It definitely is that, one thing I was thinking about doing was after it finds one entity, cache it's uuid, and then next tick check if that entity is still existing and still close enough. Only if it's not then does it go to the next one.
Solved in another ticket
User Report: I'm having a problem with the supreme generator, the supreme machines are causing a lot of lag on the server