DaedalusGame / BetterWithAddons

Companion mod for BetterWithMods, aiming to bring back ye olde addons. Also has some extra content.
MIT License
16 stars 5 forks source link

Prevent npe if lure tree recipe doesn't exist #183

Closed democat3457 closed 3 years ago

DaedalusGame commented 3 years ago

this literally should error

democat3457 commented 3 years ago

what should error

DaedalusGame commented 3 years ago

if you try to remove a luretree food that doesn't exist in the first place the game should yell at you for that

democat3457 commented 3 years ago

well that didnt happen

crash-2021-04-14_17.41.15-client.txt

DaedalusGame commented 3 years ago

oh yeah, this shouldn't actually resolve the recipe in the constructor, that's a bug, the recipe needs to be resolved in apply- otherwise you'd only be able to remove recipes that are added before crafttweaker runs its scripts.

democat3457 commented 3 years ago

how about now