forked from 2009Scape/Server
Fixed Sq'irks
This commit is contained in:
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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue