Added out of world check to blocks
This commit is contained in:
@@ -112,6 +112,10 @@ public class BlockUtils {
|
||||
Validate.isTrue(initialized, "Must be initialized!");
|
||||
Validate.notNull(blockBreakConsumer, "Must be initialized!");
|
||||
|
||||
if (block.getLocation().getY() < 0 || block.getLocation().getY() > 256) {
|
||||
return;
|
||||
}
|
||||
|
||||
blockBreakConsumer.accept(player, block);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user