Fixed position fields update for netty connections

This commit is contained in:
Felix Cravic 2020-11-26 13:38:52 +01:00
parent c7fd8f0a09
commit e813037475

View File

@ -415,7 +415,7 @@ public abstract class Entity implements Viewable, EventHandler, DataContainer, P
cachePitch != position.getPitch();
final float distance = positionChange ? position.getDistance(cacheX, cacheY, cacheZ) : 0;
if (distance >= 8) {
if (distance >= 8 || (positionChange && PlayerUtils.isNettyClient(this))) {
// Teleport has the priority over everything else
teleport(position);
} else if (positionChange && viewChange) {