region biome map: 256 x 256
This commit is contained in:
@@ -47,7 +47,7 @@ public class RegionImpl implements Region{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Biome getBiomeAt(int x, int z) {
|
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));
|
throw new RuntimeException(MessageFormat.format("Invalid biome coordinates [{0} {1}]", x, z));
|
||||||
}
|
}
|
||||||
return biomes[x][z];
|
return biomes[x][z];
|
||||||
@@ -55,7 +55,7 @@ public class RegionImpl implements Region{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setBiome(int x, int z, Biome biome) {
|
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));
|
throw new RuntimeException(MessageFormat.format("Invalid biome coordinates [{0} {1}]", x, z));
|
||||||
}
|
}
|
||||||
biomes[x][z] = biome;
|
biomes[x][z] = biome;
|
||||||
|
|||||||
Reference in New Issue
Block a user