This commit is contained in:
vemacs 2016-12-09 19:11:04 -06:00
parent 6bc9f2140c
commit d73ec779e0

View File

@ -189,7 +189,7 @@ public final class InventoryWorkaround {
try { try {
p.getInventory().setItemInMainHand(item); p.getInventory().setItemInMainHand(item);
hasMainHandSupport = true; hasMainHandSupport = true;
} catch (Exception e) { } catch (Throwable e) {
p.setItemInHand(item); p.setItemInHand(item);
hasMainHandSupport = false; hasMainHandSupport = false;
} }
@ -208,7 +208,7 @@ public final class InventoryWorkaround {
try { try {
invent.setItemInMainHand(item); invent.setItemInMainHand(item);
hasMainHandSupport = true; hasMainHandSupport = true;
} catch (Exception e) { } catch (Throwable e) {
invent.setItemInHand(item); invent.setItemInHand(item);
hasMainHandSupport = false; hasMainHandSupport = false;
} }
@ -227,7 +227,7 @@ public final class InventoryWorkaround {
try { try {
invent.setItemInMainHandDropChance(chance); invent.setItemInMainHandDropChance(chance);
hasMainHandSupport = true; hasMainHandSupport = true;
} catch (Exception e) { } catch (Throwable e) {
invent.setItemInHandDropChance(chance); invent.setItemInHandDropChance(chance);
hasMainHandSupport = false; hasMainHandSupport = false;
} }