Minor liquid current tweaks

This commit is contained in:
Anuken 2022-09-02 14:39:26 -04:00
parent 2b6a7eac45
commit bd049d4c8d
2 changed files with 2 additions and 2 deletions

View File

@ -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{

View File

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