Fixed #42 - Bad buildcraft energy consumption calculation
This commit is contained in:
parent
839ae71976
commit
37f4669ac4
2 changed files with 6 additions and 6 deletions
|
@ -1 +1 @@
|
|||
Subproject commit 6fa910625caaad5f7a01a7526401c7afde072e47
|
||||
Subproject commit caa413c164c8f545dc5a7583f5bc3c57dc252b0e
|
|
@ -58,7 +58,7 @@ public class TileEntityBattery extends TileEntityUniversalElectrical implements
|
|||
|
||||
if (!this.worldObj.isRemote)
|
||||
{
|
||||
if (this.ticks == 5 && !structure.isMultiblock)
|
||||
if (this.ticks == 5 && !this.structure.isMultiblock)
|
||||
{
|
||||
this.update();
|
||||
}
|
||||
|
@ -109,12 +109,12 @@ public class TileEntityBattery extends TileEntityUniversalElectrical implements
|
|||
updateClient();
|
||||
}
|
||||
|
||||
prevStructure = structure;
|
||||
this.prevStructure = structure;
|
||||
|
||||
structure.wroteInventory = false;
|
||||
structure.didTick = false;
|
||||
this.structure.wroteInventory = false;
|
||||
this.structure.didTick = false;
|
||||
|
||||
if (playersUsing.size() > 0)
|
||||
if (this.playersUsing.size() > 0)
|
||||
{
|
||||
updateClient();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue