mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 16:58:34 +01:00
Made Lava Factory update RF properly
This commit is contained in:
parent
7179fb01d1
commit
17f8c3b659
1 changed files with 5 additions and 0 deletions
|
@ -31,6 +31,7 @@ public class TileEntityLavaFactoryController extends TileEntityBase implements I
|
||||||
private static final int[][] CASE_POSITIONS = {{-1, 1, 0}, {1, 1, 0}, {0, 1, -1}, {0, 1, 1}};
|
private static final int[][] CASE_POSITIONS = {{-1, 1, 0}, {1, 1, 0}, {0, 1, -1}, {0, 1, 1}};
|
||||||
public EnergyStorage storage = new EnergyStorage(3000000);
|
public EnergyStorage storage = new EnergyStorage(3000000);
|
||||||
private int currentWorkTime;
|
private int currentWorkTime;
|
||||||
|
private int oldEnergy;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
|
@ -48,6 +49,10 @@ public class TileEntityLavaFactoryController extends TileEntityBase implements I
|
||||||
else{
|
else{
|
||||||
this.currentWorkTime = 0;
|
this.currentWorkTime = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(this.oldEnergy != this.storage.getEnergyStored() && this.sendUpdateWithInterval()){
|
||||||
|
this.oldEnergy = this.storage.getEnergyStored();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue