diff --git a/src/engine/db/handlers/dbLootTableHandler.java b/src/engine/db/handlers/dbLootTableHandler.java index 7f7d6f89..7e2d9f02 100644 --- a/src/engine/db/handlers/dbLootTableHandler.java +++ b/src/engine/db/handlers/dbLootTableHandler.java @@ -182,13 +182,10 @@ public class dbLootTableHandler extends dbHandlerBase { while (rs.next()) { recordsRead++; - try { + LootManager.ModTypeTableRow mttr = new LootManager.ModTypeTableRow(rs); LootManager.AddModTypeTableRow(rs.getInt("modGroup"), mttr); - } - catch(Exception ex){ - Logger.info("MOD TABLE ERROR: " + rs.getInt("modGroup")); - } + } Logger.info( "read: " + recordsRead); @@ -211,8 +208,13 @@ public class dbLootTableHandler extends dbHandlerBase { while (rs.next()) { recordsRead++; + try { LootManager.ModTableRow mtr = new LootManager.ModTableRow(rs); LootManager.AddModTableRow(rs.getInt("modTable"),mtr); + } + catch(Exception ex){ + Logger.info("MOD TABLE ERROR: " + rs.getInt("modTable")); + } } Logger.info( "read: " + recordsRead); diff --git a/src/engine/loot/LootManager.java b/src/engine/loot/LootManager.java index 368917db..2a099e80 100644 --- a/src/engine/loot/LootManager.java +++ b/src/engine/loot/LootManager.java @@ -83,7 +83,6 @@ public class LootManager { case "ITEM": Item disc = Item.getItem(bse.itemBase); if(disc != null) { - mob.getCharItemManager().addItemToInventory(disc); } break;