Using Phantom Ink on an item that already has it will now remove it.

This commit is contained in:
Vasco Lavos committed 2015-11-11 22:17:05 +00:00
1 parent 259c7fbbd4
commit 314488248f
2 files changed
+2 -5

No files matched your search

@@ -51,11 +51,8 @@ public class PhantomInkRecipe implements IRecipe {
}
IPhantomInkable inkable = (IPhantomInkable) item.getItem();
if(inkable.hasPhantomInk(item))
return null;
ItemStack copy = item.copy();
inkable.setPhantomInk(copy, true);
inkable.setPhantomInk(copy, !inkable.hasPhantomInk(item));
return copy;
}
@@ -235,7 +235,7 @@ public class ItemManasteelArmor extends ItemArmor implements ISpecialArmor, IMan
@Override
public void setPhantomInk(ItemStack stack, boolean ink) {
ItemNBTHelper.setBoolean(stack, TAG_PHANTOM_INK, true);
ItemNBTHelper.setBoolean(stack, TAG_PHANTOM_INK, ink);
}
@Override