mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 02:45:13 +00:00
Using Phantom Ink on an item that already has it will now remove it.
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user