Fixed an error with Chest Protection

This commit is contained in:
Matthew Miller 2018-08-03 21:05:03 +10:00
parent bd89bd9d2f
commit f19d2ee73d

View File

@ -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);