Permalink
Browse files

Don't check if it's a cauldron if it's unloaded.

  • Loading branch information...
me4502 committed Dec 10, 2018
1 parent 91ff25e commit 4e672c320322901791d67bf01210d6c204c3cc77
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/main/java/com/sk89q/craftbook/mechanics/cauldron/ImprovedCauldron.java
@@ -86,7 +86,9 @@ public void onSignChange(SignChangeEvent event) {
}

private boolean isCauldron(Block block) {

if (!block.getWorld().isChunkLoaded(block.getX() >> 4, block.getZ() >> 4)) {
return false;
}
if (block.getType() == Material.CAULDRON && (block.getRelative(BlockFace.DOWN).getType() == Material.FIRE || block.getRelative(BlockFace.DOWN).getType() == Material.LAVA)) {
if(requireSign) {
BlockFace[] faces = new BlockFace[]{BlockFace.NORTH, BlockFace.SOUTH, BlockFace.EAST, BlockFace.WEST};

0 comments on commit 4e672c3

Please sign in to comment.