Fixed Sq'irks

This commit is contained in:
ceikry
2021-07-26 11:11:24 -05:00
parent b1fbac4507
commit 11b4f9f28f
4 changed files with 1406 additions and 1326 deletions
@@ -21,7 +21,7 @@ public class BrawlingGlovesManager {
try {
registerGlove(id, Objects.requireNonNull(BrawlingGloves.forId(id)).getCharges());
} catch (Exception e){
System.out.println(e);
e.printStackTrace();
}
}
public void registerGlove(int id, int charges) {GloveCharges.putIfAbsent(id,charges);}
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -161,7 +161,7 @@ public class IoSession {
try {
writingLock.tryLock(1000L, TimeUnit.MILLISECONDS);
} catch (Exception e){
System.out.println(e);
e.printStackTrace();
writingLock.unlock();
}
writingQueue.add(buffer);
@@ -180,7 +180,7 @@ public class IoSession {
try {
writingLock.tryLock(1000L, TimeUnit.MILLISECONDS);
} catch (Exception e){
System.out.println(e);
e.printStackTrace();
writingLock.unlock();
return;
}
@@ -55,7 +55,7 @@ public class DatabaseManager {
return statement.executeQuery(query);
} catch (SQLException e) {
System.out.println(e);
e.printStackTrace();
}
return null;
@@ -75,7 +75,7 @@ public class DatabaseManager {
return statement.executeUpdate(query);
} catch (SQLException e) {
System.out.println(e);
e.printStackTrace();
}
return -1;