From e57ce5b36ed9908648d81ee893e46b69e46928eb Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 23 Jul 2023 11:34:30 -0400 Subject: [PATCH] Parmn one not set twice. --- src/engine/db/handlers/dbWarehouseHandler.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/engine/db/handlers/dbWarehouseHandler.java b/src/engine/db/handlers/dbWarehouseHandler.java index 419268f6..677e67eb 100644 --- a/src/engine/db/handlers/dbWarehouseHandler.java +++ b/src/engine/db/handlers/dbWarehouseHandler.java @@ -492,7 +492,6 @@ public class dbWarehouseHandler extends dbHandlerBase { try (Connection connection = DbManager.getConnection(); PreparedStatement preparedStatement = connection.prepareStatement("INSERT INTO `dyn_warehouse_transactions` (`warehouseUID`, `targetType`,`targetUID`, `type`,`resource`,`amount`,`date` ) VALUES (?,?,?,?,?,?,?)")) { - preparedStatement.setInt(1, amount); preparedStatement.setLong(1, warehouseBuildingID); preparedStatement.setString(2, targetType.name()); preparedStatement.setLong(3, targetUUID);