From 6ce964ef18754ee2cae9ac441cdd3c4051b278b2 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 21 May 2023 17:53:21 -0400 Subject: [PATCH] Unnecessary cast --- src/engine/db/handlers/dbEnchantmentHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/db/handlers/dbEnchantmentHandler.java b/src/engine/db/handlers/dbEnchantmentHandler.java index a80a771c..61ab7a3d 100644 --- a/src/engine/db/handlers/dbEnchantmentHandler.java +++ b/src/engine/db/handlers/dbEnchantmentHandler.java @@ -28,7 +28,7 @@ public class dbEnchantmentHandler extends dbHandlerBase { try (Connection connection = DbManager.getConnection(); PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM `dyn_item_enchantment` WHERE `ItemID`=?;")) { - preparedStatement.setLong(1, (long) id); + preparedStatement.setLong(1, id); ResultSet rs = preparedStatement.executeQuery();