diff options
author | Erik Broes <erikbroes@grum.nl> | 2011-03-18 22:57:22 +0100 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2011-03-21 00:30:00 +0100 |
commit | 437025a179b670af6b15caff6d0f5db9f907951d (patch) | |
tree | 9ef8754ef559f554d07643f55b1176c40b729346 /src/main/java/net/minecraft/server/ItemReed.java | |
parent | 4c420e6aa82cf8906c17fd8cf37802fb64484944 (diff) | |
download | craftbukkit-437025a179b670af6b15caff6d0f5db9f907951d.tar craftbukkit-437025a179b670af6b15caff6d0f5db9f907951d.tar.gz craftbukkit-437025a179b670af6b15caff6d0f5db9f907951d.tar.lz craftbukkit-437025a179b670af6b15caff6d0f5db9f907951d.tar.xz craftbukkit-437025a179b670af6b15caff6d0f5db9f907951d.zip |
Fixing event names
Diffstat (limited to 'src/main/java/net/minecraft/server/ItemReed.java')
-rw-r--r-- | src/main/java/net/minecraft/server/ItemReed.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/ItemReed.java b/src/main/java/net/minecraft/server/ItemReed.java index 5bd3be04..159dbe22 100644 --- a/src/main/java/net/minecraft/server/ItemReed.java +++ b/src/main/java/net/minecraft/server/ItemReed.java @@ -10,6 +10,7 @@ import org.bukkit.entity.Player; import org.bukkit.event.Event.Type; import org.bukkit.event.block.BlockPlaceEvent; import org.bukkit.Material; +import org.bukkit.event.player.PlayerVegetationPlantEvent; // CraftBukkit end public class ItemReed extends Item { @@ -91,7 +92,7 @@ public class ItemReed extends Item { */ if (world.setTypeId(i, j, k, this.a)) { // <-- world.e does this to place the block org.bukkit.Server server = ((WorldServer) world).getServer(); - Type eventType = Type.BLOCK_PLACED; + Type eventType = Type.BLOCK_PLACE; org.bukkit.inventory.ItemStack itemInHand = new CraftItemStack(itemstack); Player thePlayer = (entityhuman == null) ? null : (Player) entityhuman.getBukkitEntity(); |