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 {
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user