stronghold guardian fix

This commit is contained in:
2024-07-08 21:58:17 -05:00
parent cb1dccd630
commit 443f0f5450
+3 -4
View File
@@ -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);