diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index 85109a77..56177e38 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -170,7 +170,7 @@ public enum LootManager { if (tableRow == null) return null; - int itemUUID = tableRow.cacheID; + int itemUUID = tableRow.templateID; if (itemUUID == 0) return null; @@ -417,7 +417,7 @@ public enum LootManager { //create the item from the table, quantity is always 1 - MobLoot winnings = new MobLoot(playerCharacter, ItemTemplate.templates.get(selectedItem.cacheID), 1, false); + MobLoot winnings = new MobLoot(playerCharacter, ItemTemplate.templates.get(selectedItem.templateID), 1, false); if (winnings == null) return; diff --git a/src/engine/loot/ItemTableEntry.java b/src/engine/loot/ItemTableEntry.java index 9147f217..d501b8aa 100644 --- a/src/engine/loot/ItemTableEntry.java +++ b/src/engine/loot/ItemTableEntry.java @@ -17,14 +17,14 @@ import java.util.List; public class ItemTableEntry { public int minRoll; public int maxRoll; - public int cacheID; + public int templateID; public int minSpawn; public int maxSpawn; public ItemTableEntry(ResultSet rs) throws SQLException { this.minRoll = rs.getInt("minRoll"); this.maxRoll = rs.getInt("maxRoll"); - this.cacheID = rs.getInt("itemBaseUUID"); + this.templateID = rs.getInt("itemBaseUUID"); this.minSpawn = rs.getInt("minSpawn"); this.maxSpawn = rs.getInt("maxSpawn"); }