diff options
Diffstat (limited to 'nms-patches/BlockPressurePlateAbstract.patch')
-rw-r--r-- | nms-patches/BlockPressurePlateAbstract.patch | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nms-patches/BlockPressurePlateAbstract.patch b/nms-patches/BlockPressurePlateAbstract.patch index ed6c6b2e..2e49b8df 100644 --- a/nms-patches/BlockPressurePlateAbstract.patch +++ b/nms-patches/BlockPressurePlateAbstract.patch @@ -1,5 +1,5 @@ ---- ../work/decompile-8eb82bde//net/minecraft/server/BlockPressurePlateAbstract.java 2014-11-28 17:43:42.937707439 +0000 -+++ src/main/java/net/minecraft/server/BlockPressurePlateAbstract.java 2014-11-28 17:38:22.000000000 +0000 +--- /home/matt/mc-dev-private//net/minecraft/server/BlockPressurePlateAbstract.java 2015-02-26 22:40:22.211608143 +0000 ++++ src/main/java/net/minecraft/server/BlockPressurePlateAbstract.java 2015-02-26 22:40:22.215608143 +0000 @@ -2,6 +2,8 @@ import java.util.Random; @@ -9,11 +9,10 @@ public abstract class BlockPressurePlateAbstract extends Block { protected BlockPressurePlateAbstract(Material material) { -@@ -90,6 +92,19 @@ - int j = this.e(world, blockposition); +@@ -99,6 +101,19 @@ boolean flag = i > 0; boolean flag1 = j > 0; -+ + + // CraftBukkit start - Interact Pressure Plate + org.bukkit.World bworld = world.getWorld(); + org.bukkit.plugin.PluginManager manager = world.getServer().getPluginManager(); @@ -26,6 +25,7 @@ + j = eventRedstone.getNewCurrent(); + } + // CraftBukkit end - ++ if (i != j) { iblockdata = this.a(iblockdata, j); + world.setTypeAndData(blockposition, iblockdata, 2); |