Fixed a max power issue with belts
belts were taking in more power than they can store.
This commit is contained in:
parent
7641973d88
commit
b8dfc439d1
1 changed files with 8 additions and 2 deletions
|
@ -18,7 +18,7 @@ import dark.core.prefab.tilenetwork.NetworkTileEntities;
|
|||
|
||||
/** A class to be inherited by all machines on the assembly line. This class acts as a single peace
|
||||
* in a network of similar tiles allowing all to share power from one or more sources
|
||||
*
|
||||
*
|
||||
* @author DarkGuardsman */
|
||||
public abstract class TileEntityAssembly extends TileEntityEnergyMachine implements INetworkEnergyPart
|
||||
{
|
||||
|
@ -130,7 +130,7 @@ public abstract class TileEntityAssembly extends TileEntityEnergyMachine impleme
|
|||
@Override
|
||||
public float receiveElectricity(ForgeDirection from, ElectricityPack receive, boolean doReceive)
|
||||
{
|
||||
return this.getTileNetwork().dumpPower(this, receive.getWatts(), doReceive);
|
||||
return this.getTileNetwork().receiveElectricity(this, receive.getWatts(), doReceive);
|
||||
}
|
||||
|
||||
/** Amount of energy this tile runs on per tick */
|
||||
|
@ -162,6 +162,12 @@ public abstract class TileEntityAssembly extends TileEntityEnergyMachine impleme
|
|||
return ((NetworkSharedPower) this.getTileNetwork()).getEnergyStored();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getMaxEnergyStored()
|
||||
{
|
||||
return ((NetworkSharedPower) this.getTileNetwork()).getMaxEnergyStored();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getPartEnergy()
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue