diff options
author | sk89q <the.sk89q@gmail.com> | 2011-01-07 12:27:06 -0800 |
---|---|---|
committer | sk89q <the.sk89q@gmail.com> | 2011-01-07 12:27:06 -0800 |
commit | 592f510228b0c39d7b9c31163e3ab98bf41da28f (patch) | |
tree | c4603fc63b279f004f42a1d5ffd29a200d468b09 | |
parent | 544bd76b133278c5ce0274a1f6edc664138b347d (diff) | |
download | craftbukkit-592f510228b0c39d7b9c31163e3ab98bf41da28f.tar craftbukkit-592f510228b0c39d7b9c31163e3ab98bf41da28f.tar.gz craftbukkit-592f510228b0c39d7b9c31163e3ab98bf41da28f.tar.lz craftbukkit-592f510228b0c39d7b9c31163e3ab98bf41da28f.tar.xz craftbukkit-592f510228b0c39d7b9c31163e3ab98bf41da28f.zip |
Moved some minecart flags that don't belong in the event out of the event.
-rw-r--r-- | src/main/java/net/minecraft/server/EntityMinecart.java | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/src/main/java/net/minecraft/server/EntityMinecart.java b/src/main/java/net/minecraft/server/EntityMinecart.java index 82bedee9..b1daad0e 100644 --- a/src/main/java/net/minecraft/server/EntityMinecart.java +++ b/src/main/java/net/minecraft/server/EntityMinecart.java @@ -155,28 +155,11 @@ public class EntityMinecart extends Entity // CraftBukkit start
private void handleMinecartCreation(World world) {
- Vector derailedVelocityVector =
- new Vector(derailedX, derailedY, derailedZ);
- Vector flyingVelocityVector = new Vector(flyingX, flyingY, flyingZ);
-
CraftServer server = ((WorldServer) world).getServer();
minecart = CraftMinecart.getCraftMinecart(server, this); VehicleCreateEvent event = new VehicleCreateEvent(
- Type.VEHICLE_CREATE, minecart, slowWhenEmpty,
- derailedVelocityVector, flyingVelocityVector);
- server.getPluginManager().callEvent(event); -
- slowWhenEmpty = event.shouldSlowWhenEmpty();
-
- Vector vec = event.getDerailedVelocityFactor();
- derailedX = vec.getX();
- derailedY = vec.getY();
- derailedZ = vec.getZ();
-
- vec = event.getFlyingVelocityFactor();
- flyingX = vec.getX();
- flyingY = vec.getY();
- flyingZ = vec.getZ();
+ Type.VEHICLE_CREATE, minecart);
+ server.getPluginManager().callEvent(event);
} // CraftBukkit end
|