Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

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

Open
abecderic opened this issue Apr 7, 2020 · 0 comments
Open

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

abecderic opened this issue Apr 7, 2020 · 0 comments
Labels

Comments

@abecderic
Copy link

abecderic commented Apr 7, 2020

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

@jusvit jusvit added the bug label Jul 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants