mirror of
https://github.com/Minestom/Minestom.git
synced 2025-03-02 11:21:15 +01:00
Fixed position fields update for netty connections
This commit is contained in:
parent
c7fd8f0a09
commit
e813037475
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user