Permalink
Browse files

Fixed an error with Chest Protection

  • Loading branch information...
me4502 committed Aug 3, 2018
1 parent bd89bd9 commit f19d2ee73d1397b2c5a4411a65f8db9e1717a162
@@ -102,7 +102,7 @@ private Boolean isProtectedSign(Location block, LocalPlayer player) {
}
private Boolean isProtectedSignAndChest(Location block, LocalPlayer player) {
if (!isChest(player.getExtent().getBlock(block.setY(block.getY() + 1).toVector()).getBlockType())) {
if (!isChest(block.getExtent().getBlock(block.setY(block.getY() + 1).toVector()).getBlockType())) {
return null;
}
return isProtectedSign(block, player);

0 comments on commit f19d2ee

Please sign in to comment.