Skip to content

Commit

Permalink
Don't check if it's a cauldron if it's unloaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Dec 10, 2018
1 parent 91ff25e commit 4e672c3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 4e672c3

Please sign in to comment.