mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-08 20:10:29 +01:00
Fix #1015
This commit is contained in:
parent
6bc9f2140c
commit
d73ec779e0
@ -189,7 +189,7 @@ public final class InventoryWorkaround {
|
||||
try {
|
||||
p.getInventory().setItemInMainHand(item);
|
||||
hasMainHandSupport = true;
|
||||
} catch (Exception e) {
|
||||
} catch (Throwable e) {
|
||||
p.setItemInHand(item);
|
||||
hasMainHandSupport = false;
|
||||
}
|
||||
@ -208,7 +208,7 @@ public final class InventoryWorkaround {
|
||||
try {
|
||||
invent.setItemInMainHand(item);
|
||||
hasMainHandSupport = true;
|
||||
} catch (Exception e) {
|
||||
} catch (Throwable e) {
|
||||
invent.setItemInHand(item);
|
||||
hasMainHandSupport = false;
|
||||
}
|
||||
@ -227,7 +227,7 @@ public final class InventoryWorkaround {
|
||||
try {
|
||||
invent.setItemInMainHandDropChance(chance);
|
||||
hasMainHandSupport = true;
|
||||
} catch (Exception e) {
|
||||
} catch (Throwable e) {
|
||||
invent.setItemInHandDropChance(chance);
|
||||
hasMainHandSupport = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user