From c40ab37afa663501d704e266160640effcb3bd71 Mon Sep 17 00:00:00 2001 From: alisolarflare Date: Sat, 19 Nov 2016 12:24:22 -0500 Subject: [PATCH] Declared Enchantment unsafe --- src/alisolarflare/components/insurance/Insurance.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/alisolarflare/components/insurance/Insurance.java b/src/alisolarflare/components/insurance/Insurance.java index 50d458d..7a90e2b 100644 --- a/src/alisolarflare/components/insurance/Insurance.java +++ b/src/alisolarflare/components/insurance/Insurance.java @@ -8,7 +8,6 @@ import org.bukkit.enchantments.Enchantment; import org.bukkit.inventory.ItemStack; import alisolarflare.components.BaseCommand; -import alisolarflare.components.insurance.Insurance.InsuranceType; public class Insurance { public static enum InsuranceType{ @@ -51,7 +50,7 @@ public class Insurance { ); insuranceItem = BaseCommand.CreateDebugPotato(lore); } - insuranceItem.addEnchantment(Enchantment.DURABILITY, 10); + insuranceItem.addUnsafeEnchantment(Enchantment.DURABILITY, 10); insuranceItem.getItemMeta().setLore(lore); return insuranceItem; }