KubeJS-Mods / KubeJS

https://kubejs.com
GNU Lesser General Public License v3.0
307 stars 90 forks source link

Error with Crossroads reagent recipes if something is done with ServerEvents.recipes' event #858

Open 9thCore opened 3 months ago

9thCore commented 3 months ago

Minecraft Version

1.20.1

KubeJS Version

2001.6.5-build.14

Rhino Version

2001.2.2-build.18

Architectury Version

9.2.14

Forge/Fabric Version

47.3.1

Describe your issue

While running both KubeJS and Crossroads, random Crossroads reagent recipes error, causing them to not work (reagent can't be added into the recipient using the item). Additionally, on reload, different recipes may get affected and it's random in number: could be none, could be just one, could be four. Log features multiple reload attempts to show the variance both in exact recipes and number.

Simplest script that causes this issue: ServerEvents.recipes(e => { e.remove("minecraft:iron_pickaxe"); });

Example of such error: [13:58:41] [WARN] Error parsing recipe crossroads:reagents/cavorite[crossroads:reagents]: {"type":"crossroads:reagents","id":"cavorite","melting":1000,"boiling":1000,"item":"crossroads:gems/cavorite","color":"FFFF00"}: null

Mods: Architectury, Crossroads, Essentials, KubeJS, Rhino

Crash report/logs

https://hastebin.com/share/olehomamoq.bash