Small fix, cleanup

This commit is contained in:
paulevsGitch 2021-12-01 14:52:21 +03:00
parent 211d0fc751
commit 72e29223a1
4 changed files with 47 additions and 38 deletions

View file

@ -65,7 +65,7 @@ public class HexBiomeChunk {
}
for (short index = 0; index < SIZE; index++) {
if (random.nextInt(4) == 0) {
if (outBuffer[index] != null && random.nextInt(4) == 0) {
circle(outBuffer, index, outBuffer[index].getSubBiome(random), outBuffer[index]);
}
}