mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-28 00:19:57 +07:00
Minor liquid current tweaks
This commit is contained in:
parent
2b6a7eac45
commit
bd049d4c8d
@ -228,7 +228,7 @@ public class Conduit extends LiquidBlock implements Autotiler{
|
||||
public void updateTile(){
|
||||
smoothLiquid = Mathf.lerpDelta(smoothLiquid, liquids.currentAmount() / liquidCapacity, 0.05f);
|
||||
|
||||
if(liquids.currentAmount() > 0.001f && timer(timerFlow, 1)){
|
||||
if(liquids.currentAmount() > 0.0001f && timer(timerFlow, 1)){
|
||||
moveLiquidForward(leaks, liquids.current());
|
||||
noSleep();
|
||||
}else{
|
||||
|
@ -166,7 +166,7 @@ public class LiquidModule extends BlockModule{
|
||||
if(liq != null){
|
||||
int liquidid = liq.id;
|
||||
liquids[liquidid] = amount;
|
||||
if(amount > 0){
|
||||
if(amount > liquids[current.id]){
|
||||
current = liq;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user