mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-23 16:41:35 +01:00
Remove unused field
This commit is contained in:
parent
1ceffd8540
commit
71f2e885a4
@ -134,7 +134,6 @@ public class Player extends LivingEntity implements CommandSender {
|
|||||||
private final Set<Player> targetBreakers = Collections.singleton(this);
|
private final Set<Player> targetBreakers = Collections.singleton(this);
|
||||||
|
|
||||||
// Position synchronization with viewers
|
// Position synchronization with viewers
|
||||||
private long lastPlayerSynchronizationTime;
|
|
||||||
private double lastPlayerSyncX, lastPlayerSyncY, lastPlayerSyncZ;
|
private double lastPlayerSyncX, lastPlayerSyncY, lastPlayerSyncZ;
|
||||||
private float lastPlayerSyncYaw, lastPlayerSyncPitch;
|
private float lastPlayerSyncYaw, lastPlayerSyncPitch;
|
||||||
|
|
||||||
@ -407,8 +406,6 @@ public class Player extends LivingEntity implements CommandSender {
|
|||||||
|
|
||||||
// Multiplayer sync
|
// Multiplayer sync
|
||||||
if (!viewers.isEmpty()) {
|
if (!viewers.isEmpty()) {
|
||||||
this.lastPlayerSynchronizationTime = time;
|
|
||||||
|
|
||||||
final boolean positionChanged = position.getX() != lastPlayerSyncX ||
|
final boolean positionChanged = position.getX() != lastPlayerSyncX ||
|
||||||
position.getY() != lastPlayerSyncY ||
|
position.getY() != lastPlayerSyncY ||
|
||||||
position.getZ() != lastPlayerSyncZ;
|
position.getZ() != lastPlayerSyncZ;
|
||||||
|
Loading…
Reference in New Issue
Block a user