Just because a generator doesn't have turbines doesn't mean it doesn't have liquid (#5962)

This commit is contained in:
Matthew Peng 2021-09-08 17:40:56 -07:00 committed by GitHub
parent a5697a7d4b
commit 868cd4fb0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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