summaryrefslogtreecommitdiffstats
path: root/EssentialsProtect
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-06-12 02:48:50 +0200
committersnowleo <schneeleo@gmail.com>2011-06-12 02:48:50 +0200
commit772bf4c7d0d5b37cd35716733fe9346a81a972e3 (patch)
tree391e178113dea2d3d58573db49dbf366e9cfdff3 /EssentialsProtect
parentedefb21142e020d1edf7eb6b0bfaac4082a6e192 (diff)
parent01f69b3f2b0b7cd471b5af6e0d04e573f480cee5 (diff)
downloadEssentials-772bf4c7d0d5b37cd35716733fe9346a81a972e3.tar
Essentials-772bf4c7d0d5b37cd35716733fe9346a81a972e3.tar.gz
Essentials-772bf4c7d0d5b37cd35716733fe9346a81a972e3.tar.lz
Essentials-772bf4c7d0d5b37cd35716733fe9346a81a972e3.tar.xz
Essentials-772bf4c7d0d5b37cd35716733fe9346a81a972e3.zip
Merge branch 'master' of https://github.com/essentials/Essentials
Diffstat (limited to 'EssentialsProtect')
-rw-r--r--EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java19
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);