diff options
author | Lorenz <lo.scherf@gmail.com> | 2022-08-02 14:50:25 +0200 |
---|---|---|
committer | Lorenz <lo.scherf@gmail.com> | 2022-08-02 14:50:25 +0200 |
commit | f8567326b4ea69c79d34461385714e8d317e279c (patch) | |
tree | b0a454ae1d772862bf0528b572c56a4e2126be4f | |
parent | 6078b7d4bf531f514187dba1a6945106bf296d9e (diff) | |
download | NotEnoughUpdates-f8567326b4ea69c79d34461385714e8d317e279c.tar.gz NotEnoughUpdates-f8567326b4ea69c79d34461385714e8d317e279c.tar.bz2 NotEnoughUpdates-f8567326b4ea69c79d34461385714e8d317e279c.zip |
fixed recipe for blaze minion tier 11
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/loaders/repo/RecipeBuilder.java | 13 |
1 files changed, 8 insertions, 5 deletions
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) { |