EcoItems
EcoItems copied to clipboard
Oraxen integration doesn’t works at EcoItems initialize process.
Describe the bug When configuring the plug-in without restarting the server for the first time, it recognized correctly the Oraxen items.
After restarting the server, EcoItems would not even start and gives an Oraxen error while initializing.
To Reproduce Steps to reproduce the behavior:
- Configure new elements using Oraxen items.
- Save and restart the server.
- Scroll down to EcoItems initialize process.
- See error
Expected behavior Plug-in would start without any problem and recipes using Oraxen would appear correctly.
Screenshots
[09:47:44] [Server thread/ERROR]: Error occurred while enabling EcoItems v3.90.0 (Is it up to date?)
java.lang.NullPointerException: Cannot invoke "java.util.Map.values()" because "io.th0rgal.oraxen.items.OraxenItems.map" is null
at io.th0rgal.oraxen.items.OraxenItems.entryStream(OraxenItems.java:141) ~[oraxen-1.137.0.jar:?]
at io.th0rgal.oraxen.items.OraxenItems.getOptionalItemById(OraxenItems.java:59) ~[oraxen-1.137.0.jar:?]
at io.th0rgal.oraxen.items.OraxenItems.getItemById(OraxenItems.java:63) ~[oraxen-1.137.0.jar:?]
at com.willfp.eco.internal.spigot.integrations.customitems.CustomItemsOraxen$OraxenProvider.provideForKey(CustomItemsOraxen.kt:22) ~[eco-6.38.2-all.jar:?]
at com.willfp.eco.core.items.Items.doParse(Items.java:233) ~[eco-6.38.2-all.jar:?]
at com.willfp.eco.core.items.ItemsLookupHandler.parse(ItemsLookupHandler.java:31) ~[eco-6.38.2-all.jar:?]
at com.willfp.eco.core.items.ItemsLookupHandler.parse(ItemsLookupHandler.java:14) ~[eco-6.38.2-all.jar:?]
at com.willfp.eco.core.lookup.LookupHandler.parseKey(LookupHandler.java:36) ~[eco-6.38.2-all.jar:?]
at com.willfp.eco.core.items.Items.lookup(Items.java:193) ~[eco-6.38.2-all.jar:?]
at com.willfp.eco.core.recipe.Recipes.createAndRegisterRecipe(Recipes.java:122) ~[eco-6.38.2-all.jar:?]
at com.willfp.ecoitems.items.EcoItem.
Server Information (please complete the following information):
- Version: [paper-1.18.2.jar:git-Paper-386]
- Version of plugin and eco: EcoItems: 3.90.0 | Eco: 6.38.2 | Oraxen: 1.137.0
Additional context A turnaround for now is to use Oraxen recipes manager, but it is a little bit bizarre.
One of Oraxen Devs get to the conclusion that it could happen because EcoItems is loading before Oraxen has registered the items to the server.
I ran into this same issue. Can't use Oraxen items in ecoitems recipes.