Skip to content

Commit 57f8639

Browse files
authored
Fix #1107: Changing machine upgrades in idle does not update tooltip (#1121)
1 parent 3704033 commit 57f8639

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/aztech/modern_industrialization/machines/guicomponents/RecipeEfficiencyBar.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public Data copyData() {
5252
@Override
5353
public boolean needsSync(Data cachedData) {
5454
if (!crafter.hasActiveRecipe()) {
55-
return cachedData.hasActiveRecipe;
55+
return cachedData.hasActiveRecipe || crafter.getBehavior().getMaxRecipeEu() != cachedData.maxRecipeEu;
5656
} else {
5757
return crafter.getEfficiencyTicks() != cachedData.efficiencyTicks || crafter.getMaxEfficiencyTicks() != cachedData.maxEfficiencyTicks
5858
|| crafter.getCurrentRecipeEu() != cachedData.currentRecipeEu || crafter.getBaseRecipeEu() != cachedData.baseRecipeEu

0 commit comments

Comments
 (0)