KubeJS-Mods / KubeJS

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

Errors when using MoreDelight #890

Closed VendoAU closed 3 months ago

VendoAU commented 3 months ago

Minecraft Version

1.21.1

KubeJS Version

2101.7.0-build.145

Rhino Version

2100.2.5-build.48

Architectury Version

13.0.6

Forge/Fabric Version

21.1.22

Describe your issue

Initially KubeJS loads fine with no errors, but after any custom recipe is added there will be errors.

Here's the server_scripts/main.js that I used:

ServerEvents.recipes(event => {
    event.shapeless("minecraft:diamond", ["minecraft:dirt"]);
});

Crash report/logs

https://mclo.gs/KxtFAzy

Donaldino7712 commented 3 months ago

These are errors in MoreDelight which KubeJS simply catches and displays, this is not a KJS bug

ChiefArug commented 3 months ago

Probably duplicate of #878, where an empty tag is being used as an ingredient and the recipe is not being stopped from loading using a condition.

VendoAU commented 3 months ago

I figured out it's because the food category is only supposed to be used for smelting and smoking recipes