build fix
This commit is contained in:
parent
50e146d7fe
commit
14686a930f
|
|
@ -3,4 +3,4 @@
|
||||||
org.gradle.jvmargs=-Xmx3G
|
org.gradle.jvmargs=-Xmx3G
|
||||||
org.gradle.daemon=false
|
org.gradle.daemon=false
|
||||||
|
|
||||||
mod_version=1.20.1-1.3.2
|
mod_version=1.20.1-1.3.3
|
||||||
|
|
@ -24,7 +24,7 @@ public class ModsSupport {
|
||||||
*/
|
*/
|
||||||
LazyOptional<top.theillusivec4.curios.api.type.capability.ICuriosItemHandler> itemHandler = top.theillusivec4.curios.api.CuriosApi.getCuriosInventory(player);
|
LazyOptional<top.theillusivec4.curios.api.type.capability.ICuriosItemHandler> itemHandler = top.theillusivec4.curios.api.CuriosApi.getCuriosInventory(player);
|
||||||
JDBCsetUp.QueryResult queryResult=JDBCsetUp.executeQuery("SELECT curios_item FROM curios WHERE uuid = '"+player.getUUID()+"'");
|
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()) {
|
if(resultSet.next()) {
|
||||||
String curios_data=resultSet.getString("curios_item");
|
String curios_data=resultSet.getString("curios_item");
|
||||||
itemHandler.ifPresent(handler ->{
|
itemHandler.ifPresent(handler ->{
|
||||||
|
|
@ -49,7 +49,7 @@ public class ModsSupport {
|
||||||
});
|
});
|
||||||
|
|
||||||
resultSet.close();
|
resultSet.close();
|
||||||
queryResult.getConnection().close();
|
queryResult.connection().close();
|
||||||
}else{
|
}else{
|
||||||
StoreCurios(player,true);
|
StoreCurios(player,true);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user