mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-13 16:54:06 +00:00
Fixed the runic altar not saving the amount of mana it should get (and thus causing the amount of mana it has to reset to 0 when it loads back).
This commit is contained in:
1 parent
9004cd8e82
commit
cfdcd14565
1 file changed
+3
@@ -44,6 +44,7 @@ import vazkii.botania.common.lib.LibBlockNames;
|
||||
public class TileRuneAltar extends TileSimpleInventory implements ISidedInventory, IManaReceiver {
|
||||
|
||||
private static final String TAG_MANA = "mana";
|
||||
private static final String TAG_MANA_TO_GET = "manaToGet";
|
||||
|
||||
public int manaToGet = 0;
|
||||
int mana = 0;
|
||||
@@ -210,6 +211,7 @@ public class TileRuneAltar extends TileSimpleInventory implements ISidedInventor
|
||||
super.writeCustomNBT(par1nbtTagCompound);
|
||||
|
||||
par1nbtTagCompound.setInteger(TAG_MANA, mana);
|
||||
par1nbtTagCompound.setInteger(TAG_MANA_TO_GET, manaToGet);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -217,6 +219,7 @@ public class TileRuneAltar extends TileSimpleInventory implements ISidedInventor
|
||||
super.readCustomNBT(par1nbtTagCompound);
|
||||
|
||||
mana = par1nbtTagCompound.getInteger(TAG_MANA);
|
||||
manaToGet = par1nbtTagCompound.getInteger(TAG_MANA_TO_GET);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user