Archived
0

region biome map: 256 x 256

This commit is contained in:
Forwolk
2018-08-01 10:52:29 +03:00
parent 01a037f1f5
commit 4511fc40b1

View File

@@ -47,7 +47,7 @@ public class RegionImpl implements Region{
@Override
public Biome getBiomeAt(int x, int z) {
if (x < 0 || z < 0 || x >= 16 || z >= 16) {
if (x < 0 || z < 0 || x >= 256 || z >= 256) {
throw new RuntimeException(MessageFormat.format("Invalid biome coordinates [{0} {1}]", x, z));
}
return biomes[x][z];
@@ -55,7 +55,7 @@ public class RegionImpl implements Region{
@Override
public void setBiome(int x, int z, Biome biome) {
if (x < 0 || z < 0 || x >= 16 || z >= 16) {
if (x < 0 || z < 0 || x >= 256 || z >= 256) {
throw new RuntimeException(MessageFormat.format("Invalid biome coordinates [{0} {1}]", x, z));
}
biomes[x][z] = biome;