mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-14 05:01:28 +00:00
Fix #1015
This commit is contained in:
parent
6bc9f2140c
commit
d73ec779e0
1 changed files with 3 additions and 3 deletions
|
@ -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 a new issue