mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-12-23 19:57:36 +01:00
Fixed ArrayIndexOutOfBoundsException
This commit is contained in:
parent
307b57bf6e
commit
5e299d9d4a
@ -70,6 +70,9 @@ public class Soulbound extends EcoEnchant {
|
||||
Player player = event.getPlayer();
|
||||
|
||||
this.getPlugin().getScheduler().runLater(() -> {
|
||||
if (!player.hasMetadata("soulbound-items")) {
|
||||
return;
|
||||
}
|
||||
List<ItemStack> soulboundItems = (List<ItemStack>) player.getMetadata("soulbound-items").get(0).value();
|
||||
|
||||
if (soulboundItems == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user