Catch throwables not just normal exceptions
This commit is contained in:
parent
b5f3edc3a1
commit
c77c490324
@ -51,7 +51,7 @@ public class PacketListenerMain extends PacketAdapter {
|
||||
packets = PacketsManager.getPacketsHandler()
|
||||
.transformPacket(event.getPacket(), disguise, observer, disguise.getEntity());
|
||||
}
|
||||
catch (Exception ex) {
|
||||
catch (Throwable ex) {
|
||||
ex.printStackTrace();
|
||||
event.setCancelled(true);
|
||||
return;
|
||||
|
@ -183,7 +183,7 @@ public class PacketListenerViewSelfDisguise extends PacketAdapter {
|
||||
DisguiseUtilities.setPlayerVelocity(null);
|
||||
}
|
||||
}
|
||||
catch (Exception ex) {
|
||||
catch (Throwable ex) {
|
||||
event.setCancelled(true);
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user