catch throwable instead of exception to ensure no scary error

This commit is contained in:
xGinko 2024-01-31 15:00:28 +01:00
parent 3a1a5072c9
commit ace4030de7

View File

@ -80,7 +80,7 @@ public class EnableLeashingVillagers implements VillagerOptimizerModule, Listene
PlayerLeashEntityEvent leashEvent;
try {
leashEvent = new PlayerLeashEntityEvent(villager, player, player, event.getHand());
} catch (Exception e) {
} catch (Throwable versionException) {
leashEvent = new PlayerLeashEntityEvent(villager, player, player);
}