TechReborn / RebornCore

Reborn Core is a library used for many of the Tech Reborn team's mods, including Tech Reborn, Quantum Storage, Fluxed Redstone, Hardcore Map Reset, and many more.
MIT License
43 stars 51 forks source link

Client-side method Ingredient.ofStacks called on server-side #144

Open abecderic opened 4 years ago

abecderic commented 4 years ago

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