From 2e6416425159811ef9415291197409313338d395 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 23 Mar 2023 06:00:53 -0400 Subject: [PATCH] Bonus code removal. --- src/engine/objects/MobEquipment.java | 29 ---------------------------- 1 file changed, 29 deletions(-) diff --git a/src/engine/objects/MobEquipment.java b/src/engine/objects/MobEquipment.java index deb9d405..3eecd5b8 100644 --- a/src/engine/objects/MobEquipment.java +++ b/src/engine/objects/MobEquipment.java @@ -347,8 +347,6 @@ public class MobEquipment extends AbstractGameObject { item.setIsID(true); } - - /* * Database */ @@ -357,34 +355,7 @@ public class MobEquipment extends AbstractGameObject { } - public void persistObject() { - PreparedStatementShared ps = null; - try { - ps = prepareStatement("INSERT INTO static_npc_mobequipment (`mobID`, `slot`, `itemID`) VALUES (?, ?, ?)"); - ps.setInt(1, this.parentID, true); - ps.setInt(2, this.slot); - ps.setInt(3, this.itemBase.getUUID(), true); - ps.executeUpdate(); - } catch (SQLException e) { - Logger.error( e.toString()); - } finally { - ps.release(); - } - } - public static void removeObject(int UUID, int slot) { - PreparedStatementShared ps = null; - try { - ps = prepareStatement("DELETE FROM `static_npc_mobequipment` WHERE `mobID`=? AND slot=?"); - ps.setInt(1, UUID); - ps.setInt(2, slot); - ps.executeUpdate(); - } catch (SQLException e) { - Logger.error( e.toString()); - } finally { - ps.release(); - } - } public float getDropChance() { return dropChance;