Balancing / Bugfixes
This commit is contained in:
@@ -72,7 +72,7 @@ public class ItemModule extends BlockModule{
|
||||
cacheSums[i] = 0;
|
||||
|
||||
if(updateFlow){
|
||||
displayFlow[i] = flow[i].hasEnoughData() ? flow[i].mean() : -1;
|
||||
displayFlow[i] = flow[i].hasEnoughData() ? flow[i].mean() / Time.delta : -1;
|
||||
}
|
||||
}
|
||||
}else{
|
||||
@@ -88,7 +88,7 @@ public class ItemModule extends BlockModule{
|
||||
public float getFlowRate(Item item){
|
||||
if(flow == null) return -1f;
|
||||
|
||||
return displayFlow[item.id] * 60 / Time.delta;
|
||||
return displayFlow[item.id] * 60;
|
||||
}
|
||||
|
||||
public boolean hasFlowItem(Item item){
|
||||
|
||||
@@ -29,7 +29,7 @@ public class LiquidModule extends BlockModule{
|
||||
flow.add(lastAdded);
|
||||
lastAdded = 0;
|
||||
if(currentFlowRate < 0 || flowTimer.get(updateInterval)){
|
||||
currentFlowRate = flow.hasEnoughData() ? flow.mean() : -1f;
|
||||
currentFlowRate = flow.hasEnoughData() ? flow.mean() / Time.delta : -1f;
|
||||
}
|
||||
}else{
|
||||
currentFlowRate = -1f;
|
||||
@@ -39,7 +39,7 @@ public class LiquidModule extends BlockModule{
|
||||
|
||||
/** @return current liquid's flow rate in u/s; any value < 0 means 'not ready'. */
|
||||
public float getFlowRate(){
|
||||
return currentFlowRate * 60 / Time.delta;
|
||||
return currentFlowRate * 60;
|
||||
}
|
||||
|
||||
public float smoothAmount(){
|
||||
|
||||
Reference in New Issue
Block a user