fix ohio exploit

This commit is contained in:
Chipmunk 2023-03-27 22:47:15 -04:00
parent 81637be24f
commit 3ae3e5c37b

View file

@ -45,7 +45,12 @@ public class Client {
@Override public void packetReceived(Session session, Packet packet) { for (SessionListener listener : listeners) listener.packetReceived(session, packet); } @Override public void packetReceived(Session session, Packet packet) { for (SessionListener listener : listeners) listener.packetReceived(session, packet); }
@Override public void packetSending (PacketSendingEvent event) { for (SessionListener listener : listeners) listener.packetSending(event); } @Override public void packetSending (PacketSendingEvent event) { for (SessionListener listener : listeners) listener.packetSending(event); }
@Override public void packetSent (Session session, Packet packet) { for (SessionListener listener : listeners) listener.packetSent(session, packet); } @Override public void packetSent (Session session, Packet packet) { for (SessionListener listener : listeners) listener.packetSent(session, packet); }
@Override public void packetError (PacketErrorEvent event) { for (SessionListener listener : listeners) listener.packetError(event); }
@Override public void packetError (PacketErrorEvent event) {
event.getCause().printStackTrace();
for (SessionListener listener : listeners) listener.packetError(event);
}
@Override public void connected (ConnectedEvent event) { for (SessionListener listener : listeners) listener.connected(event); } @Override public void connected (ConnectedEvent event) { for (SessionListener listener : listeners) listener.connected(event); }
@Override public void disconnecting (DisconnectingEvent event) { for (SessionListener listener : listeners) listener.disconnecting(event); } @Override public void disconnecting (DisconnectingEvent event) { for (SessionListener listener : listeners) listener.disconnecting(event); }