Update Pump.java (#7500)

This commit is contained in:
router 2022-09-02 15:58:31 +03:00 committed by GitHub
parent 2b6a7eac45
commit 5e5b8711a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,6 +127,7 @@ public class Pump extends LiquidBlock{
@Override
public double sense(LAccess sensor){
if(sensor == LAccess.efficiency) return shouldConsume() ? efficiency : 0f;
if(sensor == LAccess.totalLiquids) return liquidDrop == null ? 0f : liquids.get(liquidDrop);
return super.sense(sensor);
}