Skip to content

Commit

Permalink
change it back
Browse files Browse the repository at this point in the history
  • Loading branch information
qouteall committed Oct 17, 2020
1 parent 20710ce commit fe61e9f
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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));
}
});
Expand Down

0 comments on commit fe61e9f

Please sign in to comment.