Very small fix to reading spawn data NBT.

This commit is contained in:
Luis C.M committed 2022-10-29 16:46:53 -05:00
1 parent b52b80c166
commit a8d9285ce5
1 file changed
+1 -1
@@ -58,7 +58,7 @@ public class SpawnData extends WeightedRandom.Item implements INaturalSpawn {
airSpawning = compound.getBoolean("CaveSpawning");
spawnHeightMin = compound.getInteger("HeightMin");
if (compound.hasKey("HeightMax")) {
if (!compound.hasKey("HeightMax")) {
spawnHeightMax = 100;
} else {
spawnHeightMax = compound.getInteger("HeightMax");