mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-31 21:48:08 +01:00
Removed isNettyClient field
This commit is contained in:
parent
3abef8c9a7
commit
78dc2b32cd
@ -138,8 +138,6 @@ public class Entity implements Viewable, Tickable, EventHandler, DataContainer,
|
||||
*/
|
||||
private final Object entityTypeLock = new Object();
|
||||
|
||||
protected boolean isNettyClient;
|
||||
|
||||
public Entity(@NotNull EntityType entityType, @NotNull UUID uuid) {
|
||||
this.id = generateId();
|
||||
this.entityType = entityType;
|
||||
@ -496,6 +494,7 @@ public class Entity implements Viewable, Tickable, EventHandler, DataContainer,
|
||||
}
|
||||
|
||||
sendPositionUpdate(true);
|
||||
final boolean isNettyClient = PlayerUtils.isNettyClient(this);
|
||||
|
||||
// Entity tick
|
||||
{
|
||||
@ -742,7 +741,7 @@ public class Entity implements Viewable, Tickable, EventHandler, DataContainer,
|
||||
return;
|
||||
}
|
||||
|
||||
if (isNettyClient && notFromListener) {
|
||||
if (PlayerUtils.isNettyClient(this) && notFromListener) {
|
||||
final PlayerPositionAndLookPacket playerPositionAndLookPacket = new PlayerPositionAndLookPacket();
|
||||
playerPositionAndLookPacket.flags = 0b111;
|
||||
playerPositionAndLookPacket.position = position.clone().subtract(lastSyncedPosition.getX(), lastSyncedPosition.getY(), lastSyncedPosition.getZ());
|
||||
|
@ -181,7 +181,6 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
||||
super(EntityType.PLAYER, uuid);
|
||||
this.username = username;
|
||||
this.playerConnection = playerConnection;
|
||||
this.isNettyClient = PlayerUtils.isNettyClient(this);
|
||||
|
||||
setBoundingBox(0.6f, 1.8f, 0.6f);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user