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 { try {
registerGlove(id, Objects.requireNonNull(BrawlingGloves.forId(id)).getCharges()); registerGlove(id, Objects.requireNonNull(BrawlingGloves.forId(id)).getCharges());
} catch (Exception e){ } catch (Exception e){
System.out.println(e); e.printStackTrace();
} }
} }
public void registerGlove(int id, int charges) {GloveCharges.putIfAbsent(id,charges);} 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 { try {
writingLock.tryLock(1000L, TimeUnit.MILLISECONDS); writingLock.tryLock(1000L, TimeUnit.MILLISECONDS);
} catch (Exception e){ } catch (Exception e){
System.out.println(e); e.printStackTrace();
writingLock.unlock(); writingLock.unlock();
} }
writingQueue.add(buffer); writingQueue.add(buffer);
@@ -180,7 +180,7 @@ public class IoSession {
try { try {
writingLock.tryLock(1000L, TimeUnit.MILLISECONDS); writingLock.tryLock(1000L, TimeUnit.MILLISECONDS);
} catch (Exception e){ } catch (Exception e){
System.out.println(e); e.printStackTrace();
writingLock.unlock(); writingLock.unlock();
return; return;
} }
@@ -55,7 +55,7 @@ public class DatabaseManager {
return statement.executeQuery(query); return statement.executeQuery(query);
} catch (SQLException e) { } catch (SQLException e) {
System.out.println(e); e.printStackTrace();
} }
return null; return null;
@@ -75,7 +75,7 @@ public class DatabaseManager {
return statement.executeUpdate(query); return statement.executeUpdate(query);
} catch (SQLException e) { } catch (SQLException e) {
System.out.println(e); e.printStackTrace();
} }
return -1; return -1;