Correct flow rate scaling

This commit is contained in:
Anuken 2020-07-21 19:51:57 -04:00
parent 93371b1cd0
commit 43ca3ca210
2 changed files with 2 additions and 2 deletions

View file

@ -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){

View file

@ -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(){