Archiviert
13
0

Fixes minecart type reporting for VEHICLE_CREATE.

Dieser Commit ist enthalten in:
Tanel Suurhans 2011-03-02 01:23:33 +02:00 committet von EvilSeph
Ursprung 6ca1f24ee2
Commit 28c9439f94

Datei anzeigen

@ -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() {