mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Spell cloth can no longer be enchanted at an anvil, closes #308
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user