mirror of
https://github.com/Minestom/Minestom.git
synced 2024-09-29 06:57:28 +02:00
Remove redundant entity tracking
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
49a64dd702
commit
d865e9f75a
@ -471,9 +471,6 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
|||||||
final Pos position = this.position;
|
final Pos position = this.position;
|
||||||
final int chunkX = position.chunkX();
|
final int chunkX = position.chunkX();
|
||||||
final int chunkZ = position.chunkZ();
|
final int chunkZ = position.chunkZ();
|
||||||
// Clear all viewable entities
|
|
||||||
this.instance.getEntityTracker().visibleEntities(chunkX, chunkZ, EntityTracker.Target.ENTITIES,
|
|
||||||
trackingUpdate::remove);
|
|
||||||
// Clear all viewable chunks
|
// Clear all viewable chunks
|
||||||
ChunkUtils.forChunksInRange(chunkX, chunkZ, MinecraftServer.getChunkViewDistance(), chunkRemover);
|
ChunkUtils.forChunksInRange(chunkX, chunkZ, MinecraftServer.getChunkViewDistance(), chunkRemover);
|
||||||
// Remove from the tab-list
|
// Remove from the tab-list
|
||||||
|
Loading…
Reference in New Issue
Block a user