Fixed power not draining

This commit is contained in:
DarkGuardsman 2013-09-21 18:03:49 -04:00
parent 9e38986f1e
commit bc18a27763

View file

@ -223,6 +223,10 @@ public class TileEntityEnergyMachine extends TileEntityMachine implements IElect
// Register to the IC2 Network
if (!this.worldObj.isRemote)
{
if (this.isFunctioning())
{
this.consumePower(this.WATTS_PER_TICK, true);
}
if (!this.isAddedToEnergyNet)
{
this.initIC();