NPC Natural Spawning:

-Further small fixes to natural spawning.
-Fixed "Skipping Entity with id " console spam.
-Entity entries can now be set to null.
-Fixed incorrect event bus logic.
This commit is contained in:
Luis C.M committed 2022-10-31 17:48:53 -05:00
1 parent 62c54e24e8
commit 45bda8ffe1
2 files changed
+13 -4

No files matched your search

@@ -104,7 +104,7 @@ public class SpawnData extends WeightedRandom.Item implements INaturalSpawn {
slot = 5;
NBTTagCompound compound = new NBTTagCompound();
if (!entity.getMCEntity().writeToNBTOptional(compound)) {
if (entity != null && !entity.getMCEntity().writeToNBTOptional(compound)) {
throw new CustomNPCsException("Entity could not be written to NBT");
} else {
switch (slot) {