Skip to content

Commit

Permalink
Fixed elytra not being able to be inserted in the enchantment applica…
Browse files Browse the repository at this point in the history
…tor, closes #452
  • Loading branch information
Buuz135 committed Nov 11, 2018
1 parent f15ac5d commit 1e58bc0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.init.Items;
import net.minecraft.item.EnumDyeColor;
import net.minecraft.item.ItemElytra;
import net.minecraft.item.ItemHoe;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.IFluidTank;
Expand Down Expand Up @@ -95,7 +96,7 @@ protected int getStackLimit(int slot, @Nonnull ItemStack stack) {
this.addInventory(new CustomColoredItemHandler(this.inItem, EnumDyeColor.GREEN, "Input items", 18 * 7 + 10, 25, 1, 1) {
@Override
public boolean canInsertItem(int slot, ItemStack stack) {
return (stack.getItem().getItemEnchantability(stack) > 0 && (stack.isItemEnchanted() || stack.isItemEnchantable())) || stack.getItem().equals(Items.ENCHANTED_BOOK) || stack.getItem() instanceof ItemHoe;
return (stack.getItem().getItemEnchantability(stack) > 0 && (stack.isItemEnchanted() || stack.isItemEnchantable())) || stack.getItem().equals(Items.ENCHANTED_BOOK) || stack.getItem() instanceof ItemHoe || stack.getItem() instanceof ItemElytra;
}

@Override
Expand Down

0 comments on commit 1e58bc0

Please sign in to comment.