Browse Source

loadID is needed; different mob.

master
MagicBot 2 years ago
parent
commit
14c4443f20
  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.building.getHirelings().contains(this) == false) { && 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.building.getHirelings().contains(this) == false) { this.loadID == 0) {
int maxSlots = 10; int maxSlots = 10;

Loading…
Cancel
Save