From e948da95b567040efdfee7436818b29315da5777 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 4 Sep 2023 14:58:13 -0400 Subject: [PATCH] Column name updated. --- src/engine/db/handlers/dbMobHandler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/db/handlers/dbMobHandler.java b/src/engine/db/handlers/dbMobHandler.java index 962a1cb6..3a76c747 100644 --- a/src/engine/db/handlers/dbMobHandler.java +++ b/src/engine/db/handlers/dbMobHandler.java @@ -127,13 +127,13 @@ public class dbMobHandler extends dbHandlerBase { } } - public boolean ADD_TO_GUARDS(final long captainUID, final String name) { + public boolean ADD_TO_GUARDS(final long captainUID, final String minionName) { try (Connection connection = DbManager.getConnection(); - PreparedStatement preparedStatement = connection.prepareStatement("INSERT INTO `dyn_guards` (`captainUID`, `name`) VALUES (?,?)")) { + PreparedStatement preparedStatement = connection.prepareStatement("INSERT INTO `dyn_guards` (`captainUID`, `minionName`) VALUES (?,?)")) { preparedStatement.setLong(1, captainUID); - preparedStatement.setString(2, name); + preparedStatement.setString(2, minionName); return (preparedStatement.executeUpdate() > 0);