From f8567326b4ea69c79d34461385714e8d317e279c Mon Sep 17 00:00:00 2001 From: Lorenz Date: Tue, 2 Aug 2022 14:50:25 +0200 Subject: fixed recipe for blaze minion tier 11 --- .../miscgui/minionhelper/loaders/repo/RecipeBuilder.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/loaders/repo/RecipeBuilder.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/loaders/repo/RecipeBuilder.java index 0c05995e..e7738954 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/loaders/repo/RecipeBuilder.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/loaders/repo/RecipeBuilder.java @@ -55,13 +55,16 @@ public class RecipeBuilder { "_" )); if (same) { - parent = manager.getMinionById(itemName); - if (parent == null) { - if (NotEnoughUpdates.INSTANCE.config.hidden.dev) { - Utils.addChatMessage("Parent is null for minion " + minionInternalName); + Minion recipeMinion = manager.getMinionById(itemName); + if (recipeMinion.getTier() == minion.getTier() - 1) { + parent = recipeMinion; + if (parent == null) { + if (NotEnoughUpdates.INSTANCE.config.hidden.dev) { + Utils.addChatMessage("Parent is null for minion " + minionInternalName); + } } + isParent = true; } - isParent = true; } } if (!isParent) { -- cgit