1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Did some requested change.

This commit is contained in:
LinoxGH 2020-06-29 00:56:38 +03:00
parent 5c7accbbe8
commit 28b5d545da

View File

@ -87,7 +87,7 @@ public class EnchantmentRune extends SimpleSlimefunItem<ItemDropHandler> {
Item entity = (Item) optional.get(); Item entity = (Item) optional.get();
ItemStack target = entity.getItemStack(); ItemStack target = entity.getItemStack();
List<Enchantment> enchantmentList = applicableEnchantments.getOrDefault(target.getType(), new ArrayList<>()); List<Enchantment> enchantmentList = new ArrayList<>(applicableEnchantments.getOrDefault(target.getType(), new ArrayList<>()));
if (enchantmentList.isEmpty()) return; if (enchantmentList.isEmpty()) return;
//Removing the enchantments that the item already has from enchantmentSet //Removing the enchantments that the item already has from enchantmentSet