Fixed average eu/tick out
This commit is contained in:
parent
d30c251b8f
commit
345fa8e4a0
1 changed files with 4 additions and 1 deletions
|
@ -61,6 +61,9 @@ public class TileLesu extends EUStorageTile implements IWrenchable {
|
|||
|
||||
} else {
|
||||
ticks ++;
|
||||
if(euChange == -1){
|
||||
euChange = 0;
|
||||
}
|
||||
euChange += energy - euLastTick;
|
||||
if(euLastTick == energy){
|
||||
euChange = 0;
|
||||
|
@ -77,7 +80,7 @@ public class TileLesu extends EUStorageTile implements IWrenchable {
|
|||
|
||||
public double getEuChange(){
|
||||
if(euChange == -1){
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
return (euChange / ticks);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue