Browse Source

stronghold guardian fix

lakebane-strongholds
FatBoy-DOTC 4 months ago
parent
commit
443f0f5450
  1. 7
      src/engine/gameManager/LootManager.java

7
src/engine/gameManager/LootManager.java

@ -658,10 +658,9 @@ public enum LootManager {
if (random > 971071) if (random > 971071)
random = 971071; random = 971071;
int baseLoot = rollRandomItem(random); ItemBase present = ItemBase.getItemBase(random);
ItemBase contract = ItemBase.getItemBase(baseLoot); if (present != null) {
if (contract != null) { MobLoot toAdd = new MobLoot(mob, present, true);
MobLoot toAdd = new MobLoot(mob, contract, true);
if (toAdd != null) if (toAdd != null)
mob.getCharItemManager().addItemToInventory(toAdd); mob.getCharItemManager().addItemToInventory(toAdd);

Loading…
Cancel
Save