mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-24 07:49:29 +01:00
Optimize entity tracker passenger checks
This commit is contained in:
parent
70262052bd
commit
ac0d44684a
1 changed files with 7 additions and 1 deletions
|
@ -22,7 +22,13 @@
|
||||||
public class ServerEntity {
|
public class ServerEntity {
|
||||||
|
|
||||||
private static final Logger LOGGER = LogUtils.getLogger();
|
private static final Logger LOGGER = LogUtils.getLogger();
|
||||||
@@ -74,13 +80,17 @@
|
@@ -69,18 +75,22 @@
|
||||||
|
private Vec3 lastSentMovement;
|
||||||
|
private int tickCount;
|
||||||
|
private int teleportDelay;
|
||||||
|
- private List<Entity> lastPassengers = Collections.emptyList();
|
||||||
|
+ private List<Entity> lastPassengers = com.google.common.collect.ImmutableList.of(); // Paper - optimize passenger checks
|
||||||
|
private boolean wasRiding;
|
||||||
private boolean wasOnGround;
|
private boolean wasOnGround;
|
||||||
@Nullable
|
@Nullable
|
||||||
private List<SynchedEntityData.DataValue<?>> trackedDataValues;
|
private List<SynchedEntityData.DataValue<?>> trackedDataValues;
|
||||||
|
|
Loading…
Add table
Reference in a new issue