mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-23 11:06:13 +01:00
Fixed an error with Chest Protection
This commit is contained in:
parent
bd89bd9d2f
commit
f19d2ee73d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user