Removed mem requirement from shared power network

This commit is contained in:
Robert 2013-12-26 14:10:42 -05:00
parent fb67d9ec53
commit 2ba17ae22c

View file

@ -28,7 +28,7 @@ public class NetworkSharedPower extends NetworkTileEntities implements IPowerLes
public long addPower(TileEntity entity, long receive, boolean doReceive) public long addPower(TileEntity entity, long receive, boolean doReceive)
{ {
if (this.networkMembers.contains(entity) && !this.runPowerLess() && receive > 0) if (!this.runPowerLess() && receive > 0)
{ {
long prevEnergyStored = this.getEnergy(); long prevEnergyStored = this.getEnergy();
long newStoredEnergy = Math.min(this.getEnergy() + receive, this.getEnergyCapacity()); long newStoredEnergy = Math.min(this.getEnergy() + receive, this.getEnergyCapacity());
@ -45,7 +45,7 @@ public class NetworkSharedPower extends NetworkTileEntities implements IPowerLes
public long removePower(TileEntity entity, long request, boolean doExtract) public long removePower(TileEntity entity, long request, boolean doExtract)
{ {
if (this.networkMembers.contains(entity) && request > 0) if (request > 0)
{ {
long requestedEnergy = Math.min(request, this.getEnergy()); long requestedEnergy = Math.min(request, this.getEnergy());
if (doExtract) if (doExtract)