diff options
| author | Roman / Nea <roman.graef@gmail.com> | 2021-12-30 14:37:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-30 14:37:02 +0100 |
| commit | b0b0b7567ec0656c60f2f3e4730c0edace353fb7 (patch) | |
| tree | 0e2b23fe4c52b0242cefc8caee9ed887797542b2 /src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java | |
| parent | fc642887639d1918d68f4706e27ea59605a16fcb (diff) | |
| download | notenoughupdates-b0b0b7567ec0656c60f2f3e4730c0edace353fb7.tar.gz notenoughupdates-b0b0b7567ec0656c60f2f3e4730c0edace353fb7.tar.bz2 notenoughupdates-b0b0b7567ec0656c60f2f3e4730c0edace353fb7.zip | |
Adding support for more recipe types and forge recipes (#40)
* Foundations for support of different crafting recipe types.
NeuRecipe is now a base class for a recipe which provides common
concepts, such as inputs, outputs and a rendering task.
GuiItemRecipe has been reworked to work with this new NeuRecipe.
NeuManager now parses said recipes. This should be reworked to be a two
step process (first register items, then register recipes).
To keep compatibility with older repo versions, NeuRecipes are parse
lenient and default to a crafting recipe. New recipes should be added in
the `recipes` json field which is an array of json dictionaries, which
have a `type` and other fields depending on the `type` of that recipe.
This also adds support for having multiple recipes for a single item
(e.g. uncrafting storage blocks).
* Remove references in existing code
* Recipe Generation
* ring recipes
* recipe generator v2
* quick forge
* bugfixes and performance improvements
* fix raw craft cost
* reload hotm if you open the hotm tree inv
* add myself to the changelog
* replace quickforge formular with lookup table
* do not crash anymore when opening recipes outside of skyblock
* format coins differently
* remove debug logs
* change recipe generator so that it doesnt crash old versions
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java b/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java index 5c26e3d6..e78c117b 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/ItemPriceInformation.java @@ -152,7 +152,7 @@ public class ItemPriceInformation { } break; case 4: - if (craftCost.fromRecipe) { + if (craftCost != null && craftCost.fromRecipe) { if ((int) craftCost.craftCost == 0) { continue; } @@ -224,7 +224,7 @@ public class ItemPriceInformation { } break; case 3: - if (craftCost.fromRecipe) { + if (craftCost != null && craftCost.fromRecipe) { if ((int) craftCost.craftCost == 0) { continue; } |
