mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-25 14:01:03 -08:00
Update LiquidModule.java
This commit is contained in:
parent
d40cff0741
commit
e41b17543f
1 changed files with 2 additions and 0 deletions
|
|
@ -43,6 +43,8 @@ public class LiquidModule extends BlockModule{
|
|||
|
||||
/** @return current liquid's flow rate in u/s; any value < 0 means 'not ready'. */
|
||||
public float getFlowRate(){
|
||||
//low throughput means no display
|
||||
if(currentFlowRate < 0.0001) return -1f;
|
||||
return currentFlowRate * 60;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue