From 434078cebfdeb51a739004e337d65ba445bfef39 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 8 Aug 2023 10:44:26 -0400 Subject: [PATCH] Power loading work. --- src/engine/objects/Mob.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 2038c7c5..16a1cce9 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -1955,7 +1955,7 @@ public class Mob extends AbstractIntelligenceAgent { // Powers from contract - if (PowersManager.AllMobPowers.containsKey(this.contract.getContractID())) + if (this.contract != null && PowersManager.AllMobPowers.containsKey(this.contract.getContractID())) for (MobPowerEntry mobPowerEntry : PowersManager.AllMobPowers.get(this.contract.getContractID())) mobPowers.put(mobPowerEntry.token, mobPowerEntry.rank);