From d37f40a1bbc07d79f1f62aa3bf54365e1967aea0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noel=20N=C3=A9meth?= Date: Sat, 26 Nov 2022 22:08:08 +0100 Subject: [PATCH] Fix missing chunk history update --- src/main/java/net/minestom/server/entity/Player.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/minestom/server/entity/Player.java b/src/main/java/net/minestom/server/entity/Player.java index 92e1d5064..901fb6b0c 100644 --- a/src/main/java/net/minestom/server/entity/Player.java +++ b/src/main/java/net/minestom/server/entity/Player.java @@ -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); }