mirror of
https://github.com/webbukkit/dynmap.git
synced 2025-03-13 06:59:27 +01:00
Fix off-by-one on max chunk section
This commit is contained in:
parent
2dd6664bdb
commit
7afb6e5fb8
@ -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…
Reference in New Issue
Block a user