Correct flow rate scaling
This commit is contained in:
@@ -88,7 +88,7 @@ public class ItemModule extends BlockModule{
|
||||
public float getFlowRate(Item item){
|
||||
if(flow == null) return -1f;
|
||||
|
||||
return displayFlow[item.id] * 60;
|
||||
return displayFlow[item.id] * 60 / Time.delta;
|
||||
}
|
||||
|
||||
public boolean hasFlowItem(Item item){
|
||||
|
||||
@@ -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;
|
||||
return currentFlowRate * 60 / Time.delta;
|
||||
}
|
||||
|
||||
public float smoothAmount(){
|
||||
|
||||
Reference in New Issue
Block a user