From d1711be39079fb4457f8d7fdd8a6ec77b843700c Mon Sep 17 00:00:00 2001 From: cola98765 Date: Fri, 10 Dec 2021 18:01:19 +0100 Subject: [PATCH] fix calculation of view range. if it was k*32+x where k is int and 0<=x<16. To compare with old versions add 32 --- src/main/java/com/seibel/lod/core/api/EventApi.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/seibel/lod/core/api/EventApi.java b/src/main/java/com/seibel/lod/core/api/EventApi.java index b4f3434c4..c1aa845de 100644 --- a/src/main/java/com/seibel/lod/core/api/EventApi.java +++ b/src/main/java/com/seibel/lod/core/api/EventApi.java @@ -224,7 +224,7 @@ public class EventApi int newWidth = (int) Math.ceil(chunksWide / (float) LodUtil.REGION_WIDTH_IN_CHUNKS); // make sure we have an odd number of regions - newWidth += (newWidth & 1) == 0 ? 1 : 2; + newWidth += (newWidth & 1) == 0 ? 1 : 0; // do the dimensions need to change in size? if (ApiShared.lodBuilder.defaultDimensionWidthInRegions != newWidth || recalculateWidths)