mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-27 23:11:12 -08:00
Correct flow rate scaling
This commit is contained in:
parent
93371b1cd0
commit
43ca3ca210
2 changed files with 2 additions and 2 deletions
|
|
@ -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(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue