mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-28 00:19:57 +07:00
Update Pump.java (#7500)
This commit is contained in:
parent
2b6a7eac45
commit
5e5b8711a3
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user