mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 22:15:06 +00:00
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:
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) {
|
||||
|
||||
Reference in new issue
Block a user