From 01706e4ae4951a106f89961635b6e9d89d449870 Mon Sep 17 00:00:00 2001 From: GeorgH93 Date: Wed, 28 Jun 2023 00:49:55 +0200 Subject: [PATCH] Fix loading of backpacks (regression introduced with 8fe2365929cdfb29f95f1122920d2c7f8589493c) --- .../src/at/pcgamingfreaks/Minepacks/Bukkit/Database/SQL.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/SQL.java b/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/SQL.java index 011c517..f9f8e51 100644 --- a/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/SQL.java +++ b/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/SQL.java @@ -250,7 +250,7 @@ protected void loadBackpack(final OfflinePlayer player, final Callback try(Connection conn = getConnection(); PreparedStatement ps = conn.prepareStatement(queryGetBP)) { final String playerUUID = getPlayerFormattedUUID(player); - ps.setString(1, fieldPlayerUUID); + ps.setString(1, playerUUID); final int bpID, version; final byte[] data; try(ResultSet rs = ps.executeQuery())