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()
|
packets = PacketsManager.getPacketsHandler()
|
||||||
.transformPacket(event.getPacket(), disguise, observer, disguise.getEntity());
|
.transformPacket(event.getPacket(), disguise, observer, disguise.getEntity());
|
||||||
}
|
}
|
||||||
catch (Exception ex) {
|
catch (Throwable ex) {
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
return;
|
return;
|
||||||
|
@ -183,7 +183,7 @@ public class PacketListenerViewSelfDisguise extends PacketAdapter {
|
|||||||
DisguiseUtilities.setPlayerVelocity(null);
|
DisguiseUtilities.setPlayerVelocity(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex) {
|
catch (Throwable ex) {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user