Fix off-by-one on max chunk section

This commit is contained in:
Mike Primm 2022-01-18 23:55:17 -06:00
parent 2dd6664bdb
commit 7afb6e5fb8
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ package org.dynmap.common.chunk;
import java.util.Arrays;
import org.dynmap.renderer.DynmapBlockState;
import org.dynmap.Log;
import org.dynmap.common.BiomeMap;
// Generic chunk representation
@ -97,7 +98,7 @@ public class GenericChunk {
dataversion = 0;
chunkstatus = null;
int y_max = (world_ymax + 15) >> 4; // Round up
sections = new GenericChunkSection[y_max - y_min]; // Range for all potential sections
sections = new GenericChunkSection[y_max - y_min + 1]; // Range for all potential sections
}
// Set inhabited ticks
public Builder inhabitedTicks(long inh) {