diff --git a/imm_ptl_core/src/main/java/com/qouteall/immersive_portals/chunk_loading/NewChunkTrackingGraph.java b/imm_ptl_core/src/main/java/com/qouteall/immersive_portals/chunk_loading/NewChunkTrackingGraph.java index 7a7944295..0c0a2e721 100644 --- a/imm_ptl_core/src/main/java/com/qouteall/immersive_portals/chunk_loading/NewChunkTrackingGraph.java +++ b/imm_ptl_core/src/main/java/com/qouteall/immersive_portals/chunk_loading/NewChunkTrackingGraph.java @@ -226,12 +226,7 @@ private static boolean shouldUnload(long currTime, PlayerWatchRecord record) { if (record.player.removed) { return true; } - if (record.isDirectLoading) { - return currTime - record.lastWatchTime > updateInterval + 1; - } - else { - return currTime - record.lastWatchTime > (long) Global.chunkUnloadDelayTicks; - } + return currTime - record.lastWatchTime > (long) Global.chunkUnloadDelayTicks; } private static void tick() { @@ -384,6 +379,7 @@ public static void removeAdditionalChunkLoader(ChunkVisibilityManager.ChunkLoade public static void addAdditionalDirectTickets(ServerPlayerEntity player) { ChunkVisibilityManager.playerDirectLoader(player).foreachChunkPos((dim, x, z, dis) -> { if (isPlayerWatchingChunk(player, dim, x, z)) { + MyLoadingTicket.addTicketIfNotLoaded(((ServerWorld) player.world), new ChunkPos(x, z)); } });