diff options
author | Tanel Suurhans <tanel.suurhans@perfectline.ee> | 2011-03-02 01:23:33 +0200 |
---|---|---|
committer | EvilSeph <evilseph@unaligned.org> | 2011-03-15 07:39:22 -0400 |
commit | 28c9439f94a02c8780a43df2837d848bb1db24e8 (patch) | |
tree | 1e0bb07c3f08189e17b9a63d845bc9925a48dec6 /src/main/java/net/minecraft | |
parent | 6ca1f24ee2bb91405cfe874e7cdbe3007401092b (diff) | |
download | craftbukkit-28c9439f94a02c8780a43df2837d848bb1db24e8.tar craftbukkit-28c9439f94a02c8780a43df2837d848bb1db24e8.tar.gz craftbukkit-28c9439f94a02c8780a43df2837d848bb1db24e8.tar.lz craftbukkit-28c9439f94a02c8780a43df2837d848bb1db24e8.tar.xz craftbukkit-28c9439f94a02c8780a43df2837d848bb1db24e8.zip |
Fixes minecart type reporting for VEHICLE_CREATE.
Diffstat (limited to 'src/main/java/net/minecraft')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityMinecart.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main/java/net/minecraft/server/EntityMinecart.java b/src/main/java/net/minecraft/server/EntityMinecart.java index 44b9b719..62010cbf 100644 --- a/src/main/java/net/minecraft/server/EntityMinecart.java +++ b/src/main/java/net/minecraft/server/EntityMinecart.java @@ -56,15 +56,6 @@ public class EntityMinecart extends Entity implements IInventory { this.a(0.98F, 0.7F); this.height = this.width / 2.0F; this.bg = false; - - // CraftBukkit start - CraftServer server = ((WorldServer) this.world).getServer(); - Type eventType = Type.VEHICLE_CREATE; - Vehicle vehicle = (Vehicle) this.getBukkitEntity(); - - VehicleCreateEvent event = new VehicleCreateEvent(eventType, vehicle); - server.getPluginManager().callEvent(event); - // CraftBukkit end } protected void a() {} @@ -91,6 +82,15 @@ public class EntityMinecart extends Entity implements IInventory { this.lastY = d1; this.lastZ = d2; this.d = i; + + // CraftBukkit start + CraftServer server = ((WorldServer) this.world).getServer(); + Type eventType = Type.VEHICLE_CREATE; + Vehicle vehicle = (Vehicle) this.getBukkitEntity(); + + VehicleCreateEvent event = new VehicleCreateEvent(eventType, vehicle); + server.getPluginManager().callEvent(event); + // CraftBukkit end } public double k() { |