From 443f0f5450f192eb0eeed42354ffeae7a6960ebf Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 8 Jul 2024 21:58:17 -0500 Subject: [PATCH] stronghold guardian fix --- src/engine/gameManager/LootManager.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index ca2c7d22..c6f9c2f9 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -658,10 +658,9 @@ public enum LootManager { if (random > 971071) random = 971071; - int baseLoot = rollRandomItem(random); - ItemBase contract = ItemBase.getItemBase(baseLoot); - if (contract != null) { - MobLoot toAdd = new MobLoot(mob, contract, true); + ItemBase present = ItemBase.getItemBase(random); + if (present != null) { + MobLoot toAdd = new MobLoot(mob, present, true); if (toAdd != null) mob.getCharItemManager().addItemToInventory(toAdd);