diff options
author | Erik Broes <erikbroes@grum.nl> | 2011-03-26 22:32:56 +0100 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2011-03-26 22:32:56 +0100 |
commit | e24b10dfd9d3b716b3c11ce46efd8caf54d52694 (patch) | |
tree | ab98237ae50bea2b7b1dec6f9445d9685c4cb4db /src/main/java/net/minecraft/server/BlockLeaves.java | |
parent | 47497aa3f93083ce7d51a1509d03dd8ceb074bcf (diff) | |
download | craftbukkit-e24b10dfd9d3b716b3c11ce46efd8caf54d52694.tar craftbukkit-e24b10dfd9d3b716b3c11ce46efd8caf54d52694.tar.gz craftbukkit-e24b10dfd9d3b716b3c11ce46efd8caf54d52694.tar.lz craftbukkit-e24b10dfd9d3b716b3c11ce46efd8caf54d52694.tar.xz craftbukkit-e24b10dfd9d3b716b3c11ce46efd8caf54d52694.zip |
Updated for the cleanups done in Bukkit
Diffstat (limited to 'src/main/java/net/minecraft/server/BlockLeaves.java')
-rw-r--r-- | src/main/java/net/minecraft/server/BlockLeaves.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/BlockLeaves.java b/src/main/java/net/minecraft/server/BlockLeaves.java index b0983225..f7a1c7c1 100644 --- a/src/main/java/net/minecraft/server/BlockLeaves.java +++ b/src/main/java/net/minecraft/server/BlockLeaves.java @@ -5,7 +5,6 @@ import java.util.Random; // CraftBukkit start import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.CraftWorld; -import org.bukkit.event.Event.Type; import org.bukkit.event.block.LeavesDecayEvent; // CraftBukkit end @@ -127,7 +126,7 @@ public class BlockLeaves extends BlockLeavesBase { // CraftBukkit start CraftServer server = ((WorldServer) world).getServer(); CraftWorld cworld = ((WorldServer) world).getWorld(); - LeavesDecayEvent event = new LeavesDecayEvent(Type.LEAVES_DECAY, cworld.getBlockAt(i, j, k)); + LeavesDecayEvent event = new LeavesDecayEvent(cworld.getBlockAt(i, j, k)); server.getPluginManager().callEvent(event); if (event.isCancelled()) return; |