Skip to content

Commit

Permalink
Slight tweak to not cause lag due to a inGenerated query
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Jul 15, 2024
1 parent 3406074 commit 18cd62d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void onBentoBoxReady(BentoBoxReadyEvent e) {

@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
public void onChunkLoad(ChunkLoadEvent e) {
if (!ready || !e.getChunk().isGenerated()) {
if (!ready) {
return;
}
World world = e.getWorld();
Expand Down

0 comments on commit 18cd62d

Please sign in to comment.