diff options
Diffstat (limited to 'src/main/java/makamys')
-rw-r--r-- | src/main/java/makamys/lodmod/renderer/LODRenderer.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/makamys/lodmod/renderer/LODRenderer.java b/src/main/java/makamys/lodmod/renderer/LODRenderer.java index 28dd175..56ca600 100644 --- a/src/main/java/makamys/lodmod/renderer/LODRenderer.java +++ b/src/main/java/makamys/lodmod/renderer/LODRenderer.java @@ -169,7 +169,7 @@ public class LODRenderer { } } Collections.sort(newServerChunkLoadQueue, new ChunkCoordDistanceComparator(player.posX, player.posY, player.posZ)); - setServerChunkLoadQueue(newServerChunkLoadQueue); + addToServerChunkLoadQueue(newServerChunkLoadQueue); lastSortX = player.posX; lastSortY = player.posY; @@ -450,8 +450,8 @@ public class LODRenderer { return Math.pow(lastSortX - player.posX, 2) + Math.pow(lastSortZ - player.posZ, 2); } - private synchronized void setServerChunkLoadQueue(List<ChunkCoordIntPair> coords) { - serverChunkLoadQueue = coords; + private synchronized void addToServerChunkLoadQueue(List<ChunkCoordIntPair> coords) { + serverChunkLoadQueue.addAll(coords); } private LODChunk receiveFarChunk(Chunk chunk) { |