diff options
author | EvilSeph <evilseph@unaligned.org> | 2011-04-25 05:06:20 -0400 |
---|---|---|
committer | EvilSeph <evilseph@unaligned.org> | 2011-04-25 05:07:31 -0400 |
commit | 2a9c15c976bb3072c5a536823b72c990eb5a1497 (patch) | |
tree | 8405d557bdeaa99b639ae68ceae0d7c9c267af91 /src | |
parent | 0740e0c777fb692e0765e584e2cbc020b8f75db2 (diff) | |
download | craftbukkit-2a9c15c976bb3072c5a536823b72c990eb5a1497.tar craftbukkit-2a9c15c976bb3072c5a536823b72c990eb5a1497.tar.gz craftbukkit-2a9c15c976bb3072c5a536823b72c990eb5a1497.tar.lz craftbukkit-2a9c15c976bb3072c5a536823b72c990eb5a1497.tar.xz craftbukkit-2a9c15c976bb3072c5a536823b72c990eb5a1497.zip |
Fixed ENTITY_INTERACT event for BlockSoil. Thanks wizjany!
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/net/minecraft/server/BlockSoil.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/BlockSoil.java b/src/main/java/net/minecraft/server/BlockSoil.java index 438f7752..286ab3c0 100644 --- a/src/main/java/net/minecraft/server/BlockSoil.java +++ b/src/main/java/net/minecraft/server/BlockSoil.java @@ -4,6 +4,7 @@ import java.util.Random; // CraftBukkit start import org.bukkit.Bukkit; +import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.event.CraftEventFactory; import org.bukkit.event.Cancellable; import org.bukkit.event.block.Action; @@ -56,7 +57,7 @@ public class BlockSoil extends Block { cancellable = CraftEventFactory.callPlayerInteractEvent((EntityHuman) entity, Action.PHYSICAL, i, j, k, -1, null); } else { cancellable = new EntityInteractEvent(entity.getBukkitEntity(), ((WorldServer) world).getWorld().getBlockAt(i, j, k)); - Bukkit.getServer().getPluginManager().callEvent((EntityInteractEvent) cancellable); + ((CraftServer)Bukkit.getServer()).getPluginManager().callEvent((EntityInteractEvent) cancellable); } if (cancellable.isCancelled()) { return; |