diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index 78dd0ba4..a59ebc66 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -394,8 +394,8 @@ public enum ForgeManager implements Runnable { rollForModifier = ThreadLocalRandom.current().nextInt(1, 100 + 1); if (rollForModifier < 80) { - rollForModifier = LootManager.TableRoll(vendor.getLevel(), false); - modTableEntry = ModTableEntry.rollTable(modTypeTableEntry.modTableID, rollForModifier); + int randomModifier = LootManager.TableRoll(vendor.getLevel(), false); + modTableEntry = ModTableEntry.rollTable(modTypeTableEntry.modTableID, randomModifier); } if (modTableEntry != null) {