Update LiquidModule.java

This commit is contained in:
Anuken 2020-08-30 08:58:53 -05:00 committed by GitHub
parent d40cff0741
commit e41b17543f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}