From 1db5464d918466037e214b0db6e2755f85db537b Mon Sep 17 00:00:00 2001 From: Erik Broes Date: Mon, 25 Apr 2011 22:19:39 +0200 Subject: Fix forgotten call of EntityInteractEvent for PressurePlates. --- src/main/java/net/minecraft/server/BlockPressurePlate.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java') diff --git a/src/main/java/net/minecraft/server/BlockPressurePlate.java b/src/main/java/net/minecraft/server/BlockPressurePlate.java index 44efad96..1a158d2d 100644 --- a/src/main/java/net/minecraft/server/BlockPressurePlate.java +++ b/src/main/java/net/minecraft/server/BlockPressurePlate.java @@ -4,6 +4,7 @@ import java.util.List; import java.util.Random; // CraftBukkit start +import org.bukkit.Bukkit; import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftWorld; import org.bukkit.craftbukkit.block.CraftBlock; @@ -108,6 +109,7 @@ public class BlockPressurePlate extends Block { } else if (object instanceof Entity) { cancellable = new EntityInteractEvent(((Entity) object).getBukkitEntity(), ((WorldServer)world).getWorld().getBlockAt(i, j, k)); + ((CraftServer)Bukkit.getServer()).getPluginManager().callEvent((EntityInteractEvent) cancellable); } else continue; if (cancellable.isCancelled()) { -- cgit v1.2.3