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

This commit is contained in:
cola98765
2021-12-10 18:01:19 +01:00
parent 93332d6256
commit d1711be390
@@ -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)