Skip to content

Commit

Permalink
XEI-Cleanups (#1827)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghostipedia authored Aug 26, 2024
1 parent 123b87b commit abcd2eb
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,12 @@ private void setRecipeWidget() {
capability.getKey().addXEIInfo(this, xOffset, recipe, capability.getValue(), true, false, yOff);
}

yOffset = yOff.getValue();
for (RecipeCondition condition : recipe.conditions) {
if (condition.getTooltips() == null) continue;
if (condition instanceof DimensionCondition dimCondition) {
addWidget(new LabelWidget(3 - xOffset, yOffset += LINE_HEIGHT + 4,
Component.translatable("recipe.condition.dimension_marker.tooltip")));
addWidget(dimCondition.setupDimensionMarkers(53 - xOffset, yOffset - 4)
addWidget(dimCondition
.setupDimensionMarkers(recipe.recipeType.getRecipeUI().getJEISize().width - xOffset - 44,
recipe.recipeType.getRecipeUI().getJEISize().height - 32)
.setBackgroundTexture(IGuiTexture.EMPTY));
} else addWidget(new LabelWidget(3 - xOffset, yOffset += LINE_HEIGHT, condition.getTooltips().getString()));
}
Expand Down

0 comments on commit abcd2eb

Please sign in to comment.