Fixed #42 - Bad buildcraft energy consumption calculation

This commit is contained in:
Calclavia 2013-10-17 15:07:11 +08:00
parent 839ae71976
commit 37f4669ac4
2 changed files with 6 additions and 6 deletions

@ -1 +1 @@
Subproject commit 6fa910625caaad5f7a01a7526401c7afde072e47
Subproject commit caa413c164c8f545dc5a7583f5bc3c57dc252b0e

View file

@ -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();
}