mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-03 21:44:40 +01:00
Fixed minecarts being dropped when crashing a boat. Fixes BUKKIT-1273
This commit is contained in:
parent
c2cdeac09b
commit
f6bcaa6b0a
1 changed files with 0 additions and 1 deletions
|
@ -344,7 +344,6 @@ public class EntityBoat extends Entity {
|
||||||
drops.add(new CraftItemStack(Item.STICK.id,1));
|
drops.add(new CraftItemStack(Item.STICK.id,1));
|
||||||
}
|
}
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
drops.add(new CraftItemStack(Item.MINECART.id,1));
|
|
||||||
Vehicle vehicle = (Vehicle) this.getBukkitEntity();
|
Vehicle vehicle = (Vehicle) this.getBukkitEntity();
|
||||||
VehicleDestroyEvent destroyEvent = new VehicleDestroyEvent(vehicle, null, drops);
|
VehicleDestroyEvent destroyEvent = new VehicleDestroyEvent(vehicle, null, drops);
|
||||||
this.world.getServer().getPluginManager().callEvent(destroyEvent);
|
this.world.getServer().getPluginManager().callEvent(destroyEvent);
|
||||||
|
|
Loading…
Reference in a new issue