KubeJS

KubeJS

61M Downloads

ServerEvents.recipes() crashes the game [modded]

NatiM6 opened this issue ยท 3 comments

commented

Minecraft Version

1.19.2

KubeJS Version

1902.6.1-build.300.jar

Rhino Version

1902.2.2-build.268.jar

Architectury Version

6.5.85

Forge/Fabric Version

Forge 43.2.21

Describe your issue

Minecraft crashes when ServerEvents.recipes() is a part of the server script.
This happens even when the callback function is empty, like event => {}.

ServerEvents.tags() works fine.

Crash report/logs

https://pastebin.com/SHYMyxVc

commented

After the newest update I can edit recipes again, so it works! :3

commented

There's a lot of mods there though, I have to check which one is not compatible.

Edit: It's the Potassium & Sulfur's Gunpowder Mod - I think that it wasn't well coded, feel free to close this issue if you think it's not something that needs change.

commented

Ho boy, okay... so the issue here I think is that... there is a json file that's just null, and the map is supposed to be filled with JsonObjects (this is true in vanilla as well, so this would also error in vanilla), but that said... these recipes should normally just be skipped in case of an error, so it does warrant fixing