Browse Source

Exclude not include noId npc's.

master
MagicBot 2 years ago
parent
commit
ee115a473d
  1. 2
      src/engine/objects/Mob.java
  2. 2
      src/engine/objects/NPC.java

2
src/engine/objects/Mob.java

@ -808,7 +808,7 @@ public class Mob extends AbstractIntelligenceAgent {
// otherwise use the mob cache location. // otherwise use the mob cache location.
if (this.building != null && building.getBlueprintUUID() != 0 if (this.building != null && building.getBlueprintUUID() != 0
&& this.loadID == 0) { && this.loadID != 0) {
int maxSlots = 10; int maxSlots = 10;

2
src/engine/objects/NPC.java

@ -357,7 +357,7 @@ public class NPC extends AbstractCharacter {
// createMobWithNoID() is called. // createMobWithNoID() is called.
if (this.building != null && if (this.building != null &&
this.loadID == 0) { this.loadID != 0) {
// Artillery Tower Captains use a hardcoded slot not first available // Artillery Tower Captains use a hardcoded slot not first available

Loading…
Cancel
Save