diff options
author | snowleo <schneeleo@gmail.com> | 2011-08-27 17:11:15 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-08-27 17:11:15 +0200 |
commit | d3302dea00d9edb1fc0896382c2cd4a53e49f382 (patch) | |
tree | e0cd35b19f7f45cc72e2de3c5ee6bcc8f56c59bf /EssentialsProtect | |
parent | 65be2dba9927d971066948f01e97ebbda79fe5a1 (diff) | |
download | Essentials-d3302dea00d9edb1fc0896382c2cd4a53e49f382.tar Essentials-d3302dea00d9edb1fc0896382c2cd4a53e49f382.tar.gz Essentials-d3302dea00d9edb1fc0896382c2cd4a53e49f382.tar.lz Essentials-d3302dea00d9edb1fc0896382c2cd4a53e49f382.tar.xz Essentials-d3302dea00d9edb1fc0896382c2cd4a53e49f382.zip |
Protect detector/powered rails
Diffstat (limited to 'EssentialsProtect')
-rw-r--r-- | EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java index d96da20a7..8dd3335f5 100644 --- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java +++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java @@ -263,7 +263,12 @@ public class EssentialsProtectEntityListener extends EntityListener for (Block block : event.blockList()) { - if ((block.getType() == Material.RAILS || block.getRelative(BlockFace.UP).getType() == Material.RAILS) + if ((block.getRelative(BlockFace.UP).getType() == Material.RAILS + || block.getType() == Material.RAILS + || block.getRelative(BlockFace.UP).getType() == Material.POWERED_RAIL + || block.getType() == Material.POWERED_RAIL + || block.getRelative(BlockFace.UP).getType() == Material.DETECTOR_RAIL + || block.getType() == Material.DETECTOR_RAIL) && prot.getSettingBool(ProtectConfig.protect_rails)) { event.setCancelled(true); |