mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-09 20:29:06 +07:00
Just because a generator doesn't have turbines doesn't mean it doesn't have liquid (#5962)
This commit is contained in:
parent
a5697a7d4b
commit
868cd4fb0b
@ -40,11 +40,11 @@ public class BurnerGenerator extends ItemLiquidGenerator{
|
|||||||
Draw.rect(turbineRegions[1], x, y, -totalTime * turbineSpeed);
|
Draw.rect(turbineRegions[1], x, y, -totalTime * turbineSpeed);
|
||||||
|
|
||||||
Draw.rect(capRegion, x, y);
|
Draw.rect(capRegion, x, y);
|
||||||
|
}
|
||||||
|
|
||||||
if(hasLiquids){
|
if(hasLiquids && liquidRegion.found()){
|
||||||
Drawf.liquid(liquidRegion, x, y, liquids.total() / liquidCapacity, liquids.current().color);
|
Drawf.liquid(liquidRegion, x, y, liquids.total() / liquidCapacity, liquids.current().color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user