Affirmatively check hireling entry instead of relying upon loadID =0 which was a side effect.

This commit is contained in:
MagicBot committed 2023-04-04 13:48:56 -04:00
1 parent 1cb103c156
commit a01a342fd8
2 files changed
+7 -3

No files matched your search

+2 -1
View File
@@ -807,7 +807,8 @@ public class Mob extends AbstractIntelligenceAgent {
// only if this building has a blueprint.
// 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) {
int maxSlots = 10;