Fixed Sq'irks
This commit is contained in:
+1
-1
@@ -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);}
|
||||||
|
|||||||
+1401
-1321
File diff suppressed because it is too large
Load Diff
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user