diff options
author | snowleo <schneeleo@gmail.com> | 2011-06-12 02:48:50 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-06-12 02:48:50 +0200 |
commit | 05b2e36e51a40065e4897dcf47b22279fe3679fb (patch) | |
tree | 74cf993ba28daef098429681c7a8b095c4e42fae | |
parent | 501118f784fec53377e6bed3f3a808690e553fdd (diff) | |
parent | 00f4586500a08cbd5a179adfc3c730ccae04a6d6 (diff) | |
download | Essentials-05b2e36e51a40065e4897dcf47b22279fe3679fb.tar Essentials-05b2e36e51a40065e4897dcf47b22279fe3679fb.tar.gz Essentials-05b2e36e51a40065e4897dcf47b22279fe3679fb.tar.lz Essentials-05b2e36e51a40065e4897dcf47b22279fe3679fb.tar.xz Essentials-05b2e36e51a40065e4897dcf47b22279fe3679fb.zip |
Merge branch 'master' of https://github.com/essentials/Essentials
-rw-r--r-- | EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java index 56f175897..39e912fbe 100644 --- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java +++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java @@ -208,7 +208,10 @@ public class EssentialsProtectBlockListener extends BlockListener BlockFace.NORTH, BlockFace.EAST, BlockFace.SOUTH, - BlockFace.WEST + BlockFace.WEST, + BlockFace.UP, + BlockFace.DOWN, + BlockFace.SELF }; @Override @@ -263,8 +266,12 @@ public class EssentialsProtectBlockListener extends BlockListener } else { - storage.unprotectBlock(block); - } + for (BlockFace blockFace : faces) + { + final Block against = block.getFace(blockFace); + storage.unprotectBlock(against); + } + } return; } else @@ -292,7 +299,11 @@ public class EssentialsProtectBlockListener extends BlockListener } else { - storage.unprotectBlock(block); + for (BlockFace blockFace : faces) + { + final Block against = block.getFace(blockFace); + storage.unprotectBlock(against); + } } } event.setCancelled(true); |