From f19d2ee73d1397b2c5a4411a65f8db9e1717a162 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Fri, 3 Aug 2018 21:05:03 +1000 Subject: [PATCH] Fixed an error with Chest Protection --- .../com/sk89q/worldguard/bukkit/chest/SignChestProtection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldguard-legacy/src/main/java/com/sk89q/worldguard/bukkit/chest/SignChestProtection.java b/worldguard-legacy/src/main/java/com/sk89q/worldguard/bukkit/chest/SignChestProtection.java index f9a41a34..eeaf7202 100644 --- a/worldguard-legacy/src/main/java/com/sk89q/worldguard/bukkit/chest/SignChestProtection.java +++ b/worldguard-legacy/src/main/java/com/sk89q/worldguard/bukkit/chest/SignChestProtection.java @@ -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);