mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-09 04:09:07 +07:00
Implemented #5905 properly
This commit is contained in:
parent
23d0dfe6bf
commit
063d2ce6c0
@ -128,8 +128,9 @@ public class ItemLiquidGenerator extends PowerGenerator{
|
||||
liquids.remove(liquid, used * power.graph.getUsageFraction());
|
||||
productionEfficiency = baseLiquidEfficiency * used / maximumPossible;
|
||||
|
||||
if(used > 0.001f && Mathf.chance(0.05 * delta())){
|
||||
if(used > 0.001f && (generateTime -= delta()) <= 0f){
|
||||
generateEffect.at(x + Mathf.range(generateEffectRnd), y + Mathf.range(generateEffectRnd));
|
||||
generateTime = 1f;
|
||||
}
|
||||
}else if(hasItems){
|
||||
// No liquids accepted or none supplied, try using items if accepted
|
||||
|
Loading…
Reference in New Issue
Block a user