mirror of
https://github.com/Minestom/Minestom.git
synced 2025-03-09 21:29:08 +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();
|
cachePitch != position.getPitch();
|
||||||
final float distance = positionChange ? position.getDistance(cacheX, cacheY, cacheZ) : 0;
|
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 has the priority over everything else
|
||||||
teleport(position);
|
teleport(position);
|
||||||
} else if (positionChange && viewChange) {
|
} else if (positionChange && viewChange) {
|
||||||
|
Loading…
Reference in New Issue
Block a user