Fixed HeatCrafter Consumes Less Liquid (#7288)

This commit is contained in:
BlackDeluxeCat
2022-08-09 02:24:45 +08:00
committed by GitHub
parent fae3360dfc
commit 0802941cb8
3 changed files with 7 additions and 1 deletions

View File

@@ -72,6 +72,7 @@ public class HeatCrafter extends GenericCrafter{
potentialEfficiency *= efficiencyScale();
}
@Override
public float efficiencyScale(){
float over = Math.max(heat - heatRequirement, 0f);
return Math.min(Mathf.clamp(heat / heatRequirement) + over / heatRequirement * overheatScale, maxEfficiency);