fix: fixed incorrect detail names in holosphere
@@ -383,6 +383,7 @@ public class ConfigSchematic extends BaseSchematic {
@Override
public OutcomePreview[] getPreviews(ItemStack targetStack, String slot) {
return Arrays.stream(definition.outcomes)
+ .filter(outcome -> !outcome.hidden)
.map(outcome -> {
ItemStack itemStack = targetStack.copy();
@@ -392,6 +393,8 @@ public class ConfigSchematic extends BaseSchematic {
int level = -1;
GlyphData glyph;
+ applyOutcome(outcome, itemStack, false, slot, null);
+
if (outcome.moduleKey != null) {
VariantData variant = ItemUpgradeRegistry.instance.getModule(getModuleKey(outcome)).getVariantData(outcome.moduleVariant);
@@ -415,8 +418,6 @@ public class ConfigSchematic extends BaseSchematic {
}
}
- applyOutcome(outcome, itemStack, false, slot, null);
-
return new OutcomePreview(outcome.moduleKey, key, name, category, level, glyph, itemStack, definition.displayType, outcome.requiredTools,
outcome.material.getApplicableItemStacks());
})
