Browse Source

Handler easier to debug.

combat-2
MagicBot 9 months ago
parent
commit
fe54085cc6
  1. 6
      src/engine/db/handlers/dbItemHandler.java

6
src/engine/db/handlers/dbItemHandler.java

@ -176,10 +176,14 @@ public class dbItemHandler extends dbHandlerBase {
ResultSet rs = preparedStatement.executeQuery(); ResultSet rs = preparedStatement.executeQuery();
while (rs.next()) { while (rs.next()) {
int templateID = rs.getInt("id");
if (templateID == 175180)
templateID = 175181;
JSONObject jsonObject = (JSONObject) jsonParser.parse(rs.getString("template")); JSONObject jsonObject = (JSONObject) jsonParser.parse(rs.getString("template"));
ItemTemplate itemTemplate = new ItemTemplate(jsonObject); ItemTemplate itemTemplate = new ItemTemplate(jsonObject);
ItemTemplate.itemTemplates.put(rs.getInt("id"), itemTemplate); ItemTemplate.itemTemplates.put(templateID, itemTemplate);
} }
} catch (Exception e) { } catch (Exception e) {

Loading…
Cancel
Save