Spell cloth can no longer be enchanted at an anvil, closes #308

This commit is contained in:
Vincent Lee committed 2016-05-30 12:57:21 -05:00
1 parent ac003f1307
commit 688da731ab
2 files changed
+6 -1

No files matched your search

@@ -30,7 +30,7 @@ public class SpellClothRecipe implements IRecipe {
for(int i = 0; i < var1.getSizeInventory(); i++) {
ItemStack stack = var1.getStackInSlot(i);
if(stack != null) {
if(stack.isItemEnchanted() && !foundEnchanted)
if(stack.isItemEnchanted() && !foundEnchanted && stack.getItem() != ModItems.spellCloth)
foundEnchanted = true;
else if(stack.getItem() == ModItems.spellCloth && !foundCloth)
@@ -34,6 +34,11 @@ public class ItemSpellCloth extends ItemMod implements IColorable {
RecipeSorter.register("botania:spellCloth", SpellClothRecipe.class, Category.SHAPELESS, "");
}
@Override
public boolean isBookEnchantable(ItemStack stack, ItemStack book) {
return false;
}
@Override
@SideOnly(Side.CLIENT)
public int getColorFromItemStack(ItemStack par1ItemStack, int par2) {