Fix missing chunk history update

This commit is contained in:
Noel Németh 2022-11-26 22:08:08 +01:00
parent 27f3b5d4ee
commit d37f40a1bb

View File

@ -659,6 +659,7 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
final int chunkX = spawnPosition.chunkX();
final int chunkZ = spawnPosition.chunkZ();
chunksLoadedByClient = new Vec(chunkX, chunkZ);
chunkUpdateLimitChecker.addToHistory(getChunk());
sendPacket(new UpdateViewPositionPacket(chunkX, chunkZ));
ChunkUtils.forChunksInRange(spawnPosition, MinecraftServer.getChunkViewDistance(), chunkAdder);
}