diff --git a/gradle.properties b/gradle.properties index 0518cc3..c6b9099 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,4 +3,4 @@ org.gradle.jvmargs=-Xmx3G org.gradle.daemon=false -mod_version=1.20.1-1.3.2 \ No newline at end of file +mod_version=1.20.1-1.3.3 \ No newline at end of file diff --git a/src/main/java/vip/fubuki/playersync/sync/ModsSupport.java b/src/main/java/vip/fubuki/playersync/sync/ModsSupport.java index 27d57e2..05b1e98 100644 --- a/src/main/java/vip/fubuki/playersync/sync/ModsSupport.java +++ b/src/main/java/vip/fubuki/playersync/sync/ModsSupport.java @@ -24,7 +24,7 @@ public void onPlayerJoin(Player player) throws SQLException { */ LazyOptional itemHandler = top.theillusivec4.curios.api.CuriosApi.getCuriosInventory(player); JDBCsetUp.QueryResult queryResult=JDBCsetUp.executeQuery("SELECT curios_item FROM curios WHERE uuid = '"+player.getUUID()+"'"); - ResultSet resultSet = queryResult.getResultSet(); + ResultSet resultSet = queryResult.resultSet(); if(resultSet.next()) { String curios_data=resultSet.getString("curios_item"); itemHandler.ifPresent(handler ->{ @@ -49,7 +49,7 @@ public void onPlayerJoin(Player player) throws SQLException { }); resultSet.close(); - queryResult.getConnection().close(); + queryResult.connection().close(); }else{ StoreCurios(player,true); }