mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-30 09:30:39 +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(){
|
public void updateTile(){
|
||||||
smoothLiquid = Mathf.lerpDelta(smoothLiquid, liquids.currentAmount() / liquidCapacity, 0.05f);
|
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());
|
moveLiquidForward(leaks, liquids.current());
|
||||||
noSleep();
|
noSleep();
|
||||||
}else{
|
}else{
|
||||||
|
@ -166,7 +166,7 @@ public class LiquidModule extends BlockModule{
|
|||||||
if(liq != null){
|
if(liq != null){
|
||||||
int liquidid = liq.id;
|
int liquidid = liq.id;
|
||||||
liquids[liquidid] = amount;
|
liquids[liquidid] = amount;
|
||||||
if(amount > 0){
|
if(amount > liquids[current.id]){
|
||||||
current = liq;
|
current = liq;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user