diff options
Diffstat (limited to 'nms-patches/BlockPressurePlateBinary.patch')
-rw-r--r-- | nms-patches/BlockPressurePlateBinary.patch | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/nms-patches/BlockPressurePlateBinary.patch b/nms-patches/BlockPressurePlateBinary.patch index e3251111..4230b680 100644 --- a/nms-patches/BlockPressurePlateBinary.patch +++ b/nms-patches/BlockPressurePlateBinary.patch @@ -1,5 +1,5 @@ ---- ../work/decompile-8eb82bde//net/minecraft/server/BlockPressurePlateBinary.java 2014-11-28 17:43:42.941707438 +0000 -+++ src/main/java/net/minecraft/server/BlockPressurePlateBinary.java 2014-11-28 17:38:20.000000000 +0000 +--- /home/matt/mc-dev-private//net/minecraft/server/BlockPressurePlateBinary.java 2015-02-26 22:40:22.215608143 +0000 ++++ src/main/java/net/minecraft/server/BlockPressurePlateBinary.java 2015-02-26 22:40:22.215608143 +0000 @@ -3,6 +3,8 @@ import java.util.Iterator; import java.util.List; @@ -9,11 +9,10 @@ public class BlockPressurePlateBinary extends BlockPressurePlateAbstract { public static final BlockStateBoolean POWERED = BlockStateBoolean.of("powered"); -@@ -44,6 +46,26 @@ - +@@ -45,6 +47,26 @@ while (iterator.hasNext()) { Entity entity = (Entity) iterator.next(); -+ + + // CraftBukkit start - Call interact event when turning on a pressure plate + if (this.e(world.getType(blockposition)) == 0) { + org.bukkit.World bworld = world.getWorld(); @@ -33,6 +32,7 @@ + } + } + // CraftBukkit end - - if (!entity.aH()) { ++ + if (!entity.aI()) { return 15; + } |