Fixed power not draining
This commit is contained in:
parent
9e38986f1e
commit
bc18a27763
1 changed files with 9 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue