summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNicholas Devenish <n.e.devenish@sussex.ac.uk>2011-03-09 01:05:06 +0000
committerErik Broes <erikbroes@grum.nl>2011-03-23 18:46:54 +0100
commit15baff85595bbc72dad66f185d7921d8548c82b6 (patch)
tree9e6d0a3d629d992324ace6d764993d0b8925976d /src
parent69cbe7d22255ad9786ecbf698c3cb2d269596b16 (diff)
downloadcraftbukkit-15baff85595bbc72dad66f185d7921d8548c82b6.tar
craftbukkit-15baff85595bbc72dad66f185d7921d8548c82b6.tar.gz
craftbukkit-15baff85595bbc72dad66f185d7921d8548c82b6.tar.lz
craftbukkit-15baff85595bbc72dad66f185d7921d8548c82b6.tar.xz
craftbukkit-15baff85595bbc72dad66f185d7921d8548c82b6.zip
Fix the "Ghost minecart" issue.
This reverts commit 73647864179cbab9f340044e9d33add445fbe774 - "Ignore entity movement packets if distance == 0" This a commit introduced an intermittent bug which has caused minecart ghosting - they are invisible until you interact with them physically. This is described in leaky bugs: http://leaky.bukkit.org/issues/547 http://leaky.bukkit.org/issues/563 And caused by the fact that normally when loading a chunk, entities fall with gravity before the block data has been loaded, and are sent a zero-distance packet to reset their positions. See Issue #190: https://github.com/Bukkit/CraftBukkit/issues/#issue/190
Diffstat (limited to 'src')
-rw-r--r--src/main/java/net/minecraft/server/EntityTrackerEntry.java5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/main/java/net/minecraft/server/EntityTrackerEntry.java b/src/main/java/net/minecraft/server/EntityTrackerEntry.java
index 97ba0436..31784724 100644
--- a/src/main/java/net/minecraft/server/EntityTrackerEntry.java
+++ b/src/main/java/net/minecraft/server/EntityTrackerEntry.java
@@ -70,11 +70,6 @@ public class EntityTrackerEntry {
Object object = null;
boolean flag = Math.abs(i) >= 8 || Math.abs(j) >= 8 || Math.abs(k) >= 8;
boolean flag1 = Math.abs(l - this.g) >= 8 || Math.abs(i1 - this.h) >= 8;
-
- // CraftBukkit - Create relative movement packet only if distance is greater than zero.
- int distanceSquared = j1*j1+k1*k1+l1*l1;
- flag = (distanceSquared > 0) && flag;
- // CraftBukkit stop
if (j1 >= -128 && j1 < 128 && k1 >= -128 && k1 < 128 && l1 >= -128 && l1 < 128) {
if (flag && flag1) {