Skip to content

Commit

Permalink
Optimized breaking of multiple blocks all at once can cause the serve…
Browse files Browse the repository at this point in the history
…r to eventually crash (#1442)
  • Loading branch information
OmerBenGera committed Nov 4, 2022
1 parent f0b9d9c commit 4816833
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -435,7 +435,7 @@ public void onBlockDestroy(com.destroystokyo.paper.event.block.BlockDestroyEvent

int blockCount = plugin.getNMSWorld().getDefaultAmount(e.getBlock());
onBlockBreak(Key.of(e.getBlock()), e.getBlock().getLocation(), blockCount,
Flag.HANDLE_NEARBY_BLOCKS, Flag.DIRTY_CHUNK, Flag.SAVE_BLOCK_COUNT);
Flag.HANDLE_NEARBY_BLOCKS, Flag.DIRTY_CHUNK);
}

}
Expand Down

0 comments on commit 4816833

Please sign in to comment.