Slight tweak to not cause lag due to a inGenerated query

This commit is contained in:
tastybento 2024-07-14 21:49:51 -07:00
parent 34060740c7
commit 18cd62dd6c

View File

@ -39,7 +39,7 @@ public class SeedWorldMakerListener implements Listener {
@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
public void onChunkLoad(ChunkLoadEvent e) {
if (!ready || !e.getChunk().isGenerated()) {
if (!ready) {
return;
}
World world = e.getWorld();