From 28c9439f94a02c8780a43df2837d848bb1db24e8 Mon Sep 17 00:00:00 2001 From: Tanel Suurhans Date: Wed, 2 Mar 2011 01:23:33 +0200 Subject: [PATCH] Fixes minecart type reporting for VEHICLE_CREATE. --- .../net/minecraft/server/EntityMinecart.java | 18 +++++++++--------- 1 file 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 44b9b719c6..62010cbf77 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() {