mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-11 17:31:06 +01:00
Fixes minecart type reporting for VEHICLE_CREATE.
This commit is contained in:
parent
6ca1f24ee2
commit
28c9439f94
1 changed files with 9 additions and 9 deletions
|
@ -56,15 +56,6 @@ public class EntityMinecart extends Entity implements IInventory {
|
||||||
this.a(0.98F, 0.7F);
|
this.a(0.98F, 0.7F);
|
||||||
this.height = this.width / 2.0F;
|
this.height = this.width / 2.0F;
|
||||||
this.bg = false;
|
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() {}
|
protected void a() {}
|
||||||
|
@ -91,6 +82,15 @@ public class EntityMinecart extends Entity implements IInventory {
|
||||||
this.lastY = d1;
|
this.lastY = d1;
|
||||||
this.lastZ = d2;
|
this.lastZ = d2;
|
||||||
this.d = i;
|
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() {
|
public double k() {
|
||||||
|
|
Loading…
Reference in a new issue