diff options
author | Travis Watkins <amaranth@ubuntu.com> | 2013-04-11 18:10:24 -0500 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2013-04-13 00:30:30 -0500 |
commit | 159d614a3a7a56818b561f79ec2c0b1eb00440a0 (patch) | |
tree | 3cf4a63e6c8115a4dc603e27214279047d896d41 /src/main/java/net/minecraft/server/EntityTracker.java | |
parent | ce5b97ea831816056d759ef707b6f53f396b16c7 (diff) | |
download | craftbukkit-159d614a3a7a56818b561f79ec2c0b1eb00440a0.tar craftbukkit-159d614a3a7a56818b561f79ec2c0b1eb00440a0.tar.gz craftbukkit-159d614a3a7a56818b561f79ec2c0b1eb00440a0.tar.lz craftbukkit-159d614a3a7a56818b561f79ec2c0b1eb00440a0.tar.xz craftbukkit-159d614a3a7a56818b561f79ec2c0b1eb00440a0.zip |
Correct vehicle movement issues. Fixes BUKKIT-2993, BUKKIT-4056
When a player comes into range of an entity in a vehicle they will often be
sent the spawn packet for the rider before receiving one for the vehicle.
This causes the attachment packet to fail client side because it attempts
to attach the rider to a vehicle that doesn't exist on the client. To
correct this we account for both possible orderings and send the
attachment packet appropriately.
Vanilla also sends an new attach packet every 60 ticks even if the vehicle
has not changed. As this packet is a toggle this resulting in players
teleporting around randomly. Since we handle attachments properly now we
simply revert this section to use the 1.4 logic.
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityTracker.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityTracker.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/EntityTracker.java b/src/main/java/net/minecraft/server/EntityTracker.java index 4de12732..9e2b76f8 100644 --- a/src/main/java/net/minecraft/server/EntityTracker.java +++ b/src/main/java/net/minecraft/server/EntityTracker.java @@ -56,9 +56,9 @@ public class EntityTracker { } else if (entity instanceof EntityItem) { this.addEntity(entity, 64, 20, true); } else if (entity instanceof EntityMinecartAbstract) { - this.addEntity(entity, 80, 3, true); + this.addEntity(entity, 80, 2, true); // CraftBukkit - Send updates at same rate as players } else if (entity instanceof EntityBoat) { - this.addEntity(entity, 80, 3, true); + this.addEntity(entity, 80, 2, true); // CraftBukkit - Send updates at same rate as players } else if (entity instanceof EntitySquid) { this.addEntity(entity, 64, 3, true); } else if (entity instanceof EntityWither) { |