Fix off-by-one on max chunk section
This commit is contained in:
parent
57aabecb7a
commit
95305684d4
1 changed files with 2 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ package org.dynmap.common.chunk;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
import org.dynmap.renderer.DynmapBlockState;
|
import org.dynmap.renderer.DynmapBlockState;
|
||||||
|
import org.dynmap.Log;
|
||||||
import org.dynmap.common.BiomeMap;
|
import org.dynmap.common.BiomeMap;
|
||||||
|
|
||||||
// Generic chunk representation
|
// Generic chunk representation
|
||||||
|
|
@ -97,7 +98,7 @@ public class GenericChunk {
|
||||||
dataversion = 0;
|
dataversion = 0;
|
||||||
chunkstatus = null;
|
chunkstatus = null;
|
||||||
int y_max = (world_ymax + 15) >> 4; // Round up
|
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
|
// Set inhabited ticks
|
||||||
public Builder inhabitedTicks(long inh) {
|
public Builder inhabitedTicks(long inh) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue