mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-13 00:37:57 +00:00
Added a "One use Mana Tablet" NBT tag for mapmakers.
This commit is contained in:
1 parent
776763c47b
commit
8fca7e0dde
1 file changed
+2
-1
@@ -37,6 +37,7 @@ public class ItemManaTablet extends ItemMod implements IManaItem, ICreativeManaP
|
||||
|
||||
private static final String TAG_MANA = "mana";
|
||||
private static final String TAG_CREATIVE = "creative";
|
||||
private static final String TAG_ONE_USE = "oneUse";
|
||||
|
||||
public ItemManaTablet() {
|
||||
super();
|
||||
@@ -135,7 +136,7 @@ public class ItemManaTablet extends ItemMod implements IManaItem, ICreativeManaP
|
||||
|
||||
@Override
|
||||
public boolean canReceiveManaFromPool(ItemStack stack, TileEntity pool) {
|
||||
return true;
|
||||
return !ItemNBTHelper.getBoolean(stack, TAG_ONE_USE, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user