diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-02-01 10:20:18 +0000 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-02-01 10:20:18 +0000 |
commit | 24f140d1f43498b5e40db23d834f9d1f597a9bce (patch) | |
tree | 0b70b1f65df52561cf403b91a3a4d34bf048aaa3 /src/main/java/net/minecraft/server/EntityMinecart.java | |
parent | 2b0ab5a1307f0dd76963dd331c526fdb714e48a5 (diff) | |
download | craftbukkit-24f140d1f43498b5e40db23d834f9d1f597a9bce.tar craftbukkit-24f140d1f43498b5e40db23d834f9d1f597a9bce.tar.gz craftbukkit-24f140d1f43498b5e40db23d834f9d1f597a9bce.tar.lz craftbukkit-24f140d1f43498b5e40db23d834f9d1f597a9bce.tar.xz craftbukkit-24f140d1f43498b5e40db23d834f9d1f597a9bce.zip |
Implemented VEHICLE_UPDATE
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityMinecart.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityMinecart.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/net/minecraft/server/EntityMinecart.java b/src/main/java/net/minecraft/server/EntityMinecart.java index 89e86ac1..e9db574a 100644 --- a/src/main/java/net/minecraft/server/EntityMinecart.java +++ b/src/main/java/net/minecraft/server/EntityMinecart.java @@ -480,14 +480,14 @@ public class EntityMinecart extends Entity implements IInventory { this.b(this.yaw, this.pitch); - // CraftBukkit start + // CraftBukkit start CraftServer server = ((WorldServer) this.world).getServer(); CraftWorld world = ((WorldServer) this.world).getWorld(); Location from = new Location(world, prevX, prevY, prevZ, prevYaw, prevPitch); Location to = new Location(world, this.locX, this.locY, this.locZ, this.yaw, this.pitch); + Vehicle vehicle = (Vehicle) this.getBukkitEntity(); + server.getPluginManager().callEvent(new VehicleEvent(Type.VEHICLE_UPDATE, vehicle)); if (!from.equals(to)) { - Vehicle vehicle = (Vehicle) this.getBukkitEntity(); - VehicleMoveEvent event = new VehicleMoveEvent(Type.VEHICLE_MOVE, vehicle, from, to); server.getPluginManager().callEvent(event); } |