mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-09 04:09:54 +01:00
SPIGOT-80: Fix players being invisible after teleporting
This commit is contained in:
parent
a7287cb4c6
commit
d04430e09b
@ -1,5 +1,5 @@
|
||||
--- ../work/decompile-8eb82bde//net/minecraft/server/EntityTrackerEntry.java 2014-11-28 17:43:43.173707433 +0000
|
||||
+++ src/main/java/net/minecraft/server/EntityTrackerEntry.java 2014-11-28 17:38:21.000000000 +0000
|
||||
--- ../work/decompile-8eb82bde//net/minecraft/server/EntityTrackerEntry.java 2014-12-06 20:17:40.567361225 +0000
|
||||
+++ src/main/java/net/minecraft/server/EntityTrackerEntry.java 2014-12-06 20:17:33.983361371 +0000
|
||||
@@ -8,6 +8,11 @@
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
@ -162,7 +162,20 @@
|
||||
|
||||
if (this.tracker instanceof EntityLiving) {
|
||||
EntityLiving entityliving = (EntityLiving) this.tracker;
|
||||
@@ -356,7 +427,10 @@
|
||||
@@ -337,8 +408,10 @@
|
||||
}
|
||||
|
||||
public boolean c(EntityPlayer entityplayer) {
|
||||
- double d0 = entityplayer.locX - (double) (this.xLoc / 32);
|
||||
- double d1 = entityplayer.locZ - (double) (this.zLoc / 32);
|
||||
+ // CraftBukkit start - this.*Loc / 30 -> this.tracker.loc*
|
||||
+ double d0 = entityplayer.locX - this.tracker.locX;
|
||||
+ double d1 = entityplayer.locZ - this.tracker.locZ;
|
||||
+ // CraftBukkit end
|
||||
|
||||
return d0 >= (double) (-this.b) && d0 <= (double) this.b && d1 >= (double) (-this.b) && d1 <= (double) this.b && this.tracker.a(entityplayer);
|
||||
}
|
||||
@@ -356,7 +429,10 @@
|
||||
|
||||
private Packet c() {
|
||||
if (this.tracker.dead) {
|
||||
|
Loading…
Reference in New Issue
Block a user