TileAltar now uses new SN methods
This commit is contained in:
parent
e0b073b8b7
commit
a12c72092a
|
@ -110,7 +110,6 @@ public class TileAltar extends TileInventory implements IBloodAltar, IUpdatePlay
|
|||
else
|
||||
tagCompound.setString("Empty", "");
|
||||
|
||||
|
||||
if (fluidOutput != null)
|
||||
tagCompound.setInteger("outputAmount", fluidOutput.amount);
|
||||
|
||||
|
@ -280,7 +279,7 @@ public class TileAltar extends TileInventory implements IBloodAltar, IUpdatePlay
|
|||
if (fluid != null && fluid.amount >= 1) {
|
||||
int liquidDrained = Math.min((int) (altarTier.ordinal() >= 2 ? consumptionRate * (1 + consumptionMultiplier) : consumptionRate), fluid.amount);
|
||||
|
||||
int drain = NetworkHelper.addCurrentEssenceToMaximum(ownerName, liquidDrained, (int) (item.getMaxEssence(returnedItem.getMetadata()) * this.orbCapacityMultiplier));
|
||||
int drain = NetworkHelper.getSoulNetwork(ownerName, getWorld()).addLifeEssence(liquidDrained, (int) (item.getMaxEssence(returnedItem.getMetadata()) * this.orbCapacityMultiplier));
|
||||
|
||||
fluid.amount = fluid.amount - drain;
|
||||
|
||||
|
|
Loading…
Reference in a new issue