mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 16:37:45 +00:00
Very small fix to reading spawn data NBT.
This commit is contained in:
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");
|
||||
|
||||
Reference in new issue
Block a user