From 0a2de9e0d58dce1e1344fd9f7ed0133410dddd7f Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 25 Aug 2023 13:41:22 -0400 Subject: [PATCH] Contract handling cleanup. --- src/engine/db/handlers/dbMobHandler.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/engine/db/handlers/dbMobHandler.java b/src/engine/db/handlers/dbMobHandler.java index aac5b418..4986254e 100644 --- a/src/engine/db/handlers/dbMobHandler.java +++ b/src/engine/db/handlers/dbMobHandler.java @@ -44,12 +44,7 @@ public class dbMobHandler extends dbHandlerBase { preparedStatement.setInt(7, 0); preparedStatement.setFloat(8, toAdd.spawnRadius); preparedStatement.setInt(9, toAdd.spawnTime); - - if (toAdd.getContract() != null) - preparedStatement.setInt(10, toAdd.contractUUID); - else - preparedStatement.setInt(10, 0); - + preparedStatement.setInt(10, toAdd.contractUUID); preparedStatement.setInt(11, toAdd.buildingUUID); preparedStatement.setInt(12, toAdd.level); preparedStatement.setString(13, toAdd.firstName);