Fix Packet
This commit is contained in:
parent
811caa43b3
commit
75a90dd404
@ -1,4 +1,4 @@
|
||||
1package io.izzel.taboolib.module.db.local;
|
||||
package io.izzel.taboolib.module.db.local;
|
||||
|
||||
import io.izzel.taboolib.util.Files;
|
||||
import org.bukkit.Bukkit;
|
||||
|
@ -9,6 +9,7 @@ import io.netty.channel.ChannelPromise;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.ConcurrentModificationException;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
|
||||
@ -54,6 +55,7 @@ public abstract class ChannelExecutor {
|
||||
if (TPacketHandler.getListeners().stream().flatMap(Collection::stream).anyMatch(packetListener -> !packetListener.onSend(player, o) || !packetListener.onSend(player, new Packet(o)))) {
|
||||
return;
|
||||
}
|
||||
} catch (ConcurrentModificationException ignore) {
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
@ -66,6 +68,7 @@ public abstract class ChannelExecutor {
|
||||
if (TPacketHandler.getListeners().stream().flatMap(Collection::stream).anyMatch(packetListener -> !packetListener.onReceive(player, o) || !packetListener.onReceive(player, new Packet(o)))) {
|
||||
return;
|
||||
}
|
||||
} catch (ConcurrentModificationException ignore) {
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user