mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-21 15:41:38 +01:00
Fix missing chunk history update
This commit is contained in:
parent
27f3b5d4ee
commit
d37f40a1bb
@ -659,6 +659,7 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
|||||||
final int chunkX = spawnPosition.chunkX();
|
final int chunkX = spawnPosition.chunkX();
|
||||||
final int chunkZ = spawnPosition.chunkZ();
|
final int chunkZ = spawnPosition.chunkZ();
|
||||||
chunksLoadedByClient = new Vec(chunkX, chunkZ);
|
chunksLoadedByClient = new Vec(chunkX, chunkZ);
|
||||||
|
chunkUpdateLimitChecker.addToHistory(getChunk());
|
||||||
sendPacket(new UpdateViewPositionPacket(chunkX, chunkZ));
|
sendPacket(new UpdateViewPositionPacket(chunkX, chunkZ));
|
||||||
ChunkUtils.forChunksInRange(spawnPosition, MinecraftServer.getChunkViewDistance(), chunkAdder);
|
ChunkUtils.forChunksInRange(spawnPosition, MinecraftServer.getChunkViewDistance(), chunkAdder);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user