mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 18:57:32 +00:00
NPC Natural Spawning:
-Null entities are now skipped when determining what NPC in a natural spawn entry to spawn in the world.
This commit is contained in:
1 parent
abd4ab58a3
commit
62c54e24e8
1 file changed
+3
-1
@@ -160,7 +160,9 @@ public class NPCSpawning {
|
||||
} catch (Exception e) {
|
||||
continue;
|
||||
}
|
||||
entities.add(entity);
|
||||
if (entity != null) {
|
||||
entities.add(entity);
|
||||
}
|
||||
}
|
||||
|
||||
Entity spawnEntity = entities.get((int)Math.floor(Math.random()*entities.size()));
|
||||
|
||||
Reference in new issue
Block a user