summaryrefslogtreecommitdiffstats
path: root/nms-patches/BlockPressurePlateBinary.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/BlockPressurePlateBinary.patch')
-rw-r--r--nms-patches/BlockPressurePlateBinary.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/nms-patches/BlockPressurePlateBinary.patch b/nms-patches/BlockPressurePlateBinary.patch
index 37a87c15..c0855968 100644
--- a/nms-patches/BlockPressurePlateBinary.patch
+++ b/nms-patches/BlockPressurePlateBinary.patch
@@ -9,12 +9,12 @@
public class BlockPressurePlateBinary extends BlockPressurePlateAbstract {
public static final BlockStateBoolean POWERED = BlockStateBoolean.of("powered");
-@@ -45,6 +47,26 @@
+@@ -63,6 +65,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) {
++ if (this.getPower(world.getType(blockposition)) == 0) {
+ org.bukkit.World bworld = world.getWorld();
+ org.bukkit.plugin.PluginManager manager = world.getServer().getPluginManager();
+ org.bukkit.event.Cancellable cancellable;
@@ -33,6 +33,6 @@
+ }
+ // CraftBukkit end
+
- if (!entity.aI()) {
+ if (!entity.isIgnoreBlockTrigger()) {
return 15;
}