Client-side method Ingredient.ofStacks called on server-side
abecderic opened this issue ยท 0 comments
If some mod is foolish enough to call recipe.getPreviewInputs()
on a RebornRecipe on a dedicated server, the game crashes with java.lang.NoSuchMethodError: 'net.minecraft.class_1856 net.minecraft.class_1856.method_8101(net.minecraft.class_1799[])'
.
The culprit lies here: In StackIngredient#getPreview you call Ingredient.ofStacks(...)
which is client-side only.
Full Log: https://hatebin.com/wddhwdbqvs