Make sure we do not crash out
This commit is contained in:
parent
3801c44aab
commit
9f9849d9b0
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ public class HexBiomeMap implements BiomeMap {
|
|||
@Override
|
||||
public BCLBiome getBiome(double x, double z) {
|
||||
BCLBiome BCLBiome = getRawBiome(x, z);
|
||||
if (BCLBiome.getEdge() != null) {
|
||||
if (BCLBiome!=null && BCLBiome.getEdge() != null) {
|
||||
float offset = scale * BCLBiome.getEdgeSize();
|
||||
for (byte i = 0; i < 8; i++) {
|
||||
if (getRawBiome(x + offset * EDGE_CIRCLE_X[i], z + offset * EDGE_CIRCLE_Z[i]) != BCLBiome) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue