Hex biome map fixes

This commit is contained in:
paulevsGitch 2021-12-02 03:34:04 +03:00
parent 0bfefa460f
commit 7daf9f614c

View file

@ -66,9 +66,9 @@ public class HexBiomeChunk {
for (short index = 0; index < SIZE; index++) { for (short index = 0; index < SIZE; index++) {
if (outBuffer[index] == null) { if (outBuffer[index] == null) {
System.out.println("Buffer is null at " + index + ": " + (index >> SIDE_OFFSET) + " " + (index & SIDE_MASK)); outBuffer[index] = picker.getBiome(random);
} }
if (outBuffer[index] != null && random.nextInt(4) == 0) { else if (random.nextInt(4) == 0) {
circle(outBuffer, index, outBuffer[index].getSubBiome(random), outBuffer[index]); circle(outBuffer, index, outBuffer[index].getSubBiome(random), outBuffer[index]);
} }
} }