Fast WorldReset, reduce spawned tasks, fix schemcoloring #12
@ -70,7 +70,11 @@ class PacketProcessor {
|
|||||||
private void runSync() {
|
private void runSync() {
|
||||||
synchronized (syncList) {
|
synchronized (syncList) {
|
||||||
for(Runnable runnable : syncList) {
|
for(Runnable runnable : syncList) {
|
||||||
runnable.run();
|
try{
|
||||||
|
runnable.run();
|
||||||
|
}catch (Exception e) {
|
||||||
|
Bukkit.getLogger().log(Level.WARNING, "Failed to execute packet", e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
syncList.clear();
|
syncList.clear();
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren