From 3168f12af15728a3612d29160f800547bc901648 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 15 Mar 2024 10:59:23 -0400 Subject: [PATCH] More itembase refactor work --- src/engine/db/handlers/dbNPCHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/db/handlers/dbNPCHandler.java b/src/engine/db/handlers/dbNPCHandler.java index c7cb706f..bf0712e8 100644 --- a/src/engine/db/handlers/dbNPCHandler.java +++ b/src/engine/db/handlers/dbNPCHandler.java @@ -345,14 +345,14 @@ public class dbNPCHandler extends dbHandlerBase { + NPC._pirateNames.size() + " mobBases"); } - public boolean ADD_TO_PRODUCTION_LIST(final long ID, final long npcUID, final long itemBaseID, DateTime dateTime, String prefix, String suffix, String name, boolean isRandom, int playerID) { + public boolean ADD_TO_PRODUCTION_LIST(final long ID, final long npcUID, final long templateID, DateTime dateTime, String prefix, String suffix, String name, boolean isRandom, int playerID) { try (Connection connection = DbManager.getConnection(); PreparedStatement preparedStatement = connection.prepareStatement("INSERT INTO `dyn_npc_production` (`ID`,`npcUID`, `itemBaseID`,`dateToUpgrade`, `isRandom`, `prefix`, `suffix`, `name`,`playerID`) VALUES (?,?,?,?,?,?,?,?,?)")) { preparedStatement.setLong(1, ID); preparedStatement.setLong(2, npcUID); - preparedStatement.setLong(3, itemBaseID); + preparedStatement.setLong(3, templateID); preparedStatement.setTimestamp(4, new java.sql.Timestamp(dateTime.getMillis())); preparedStatement.setBoolean(5, isRandom); preparedStatement.setString(6, prefix);