squeek502 / AppleCore

An API for modifying the food and hunger mechanics of Minecraft
The Unlicense
55 stars 24 forks source link

crashes whenever i eat something #123

Closed Apocolyptik closed 6 years ago

Apocolyptik commented 6 years ago

crash log

i can't decide if it's a Spice of Life: Carrot Edition problem or an Applecore problem so i figured i would start here unfortunately it's also possible that some other mod is conflicting as i do have a somewhat large mod list.

squeek502 commented 6 years ago

Seems likely that this is a mod conflict issue. Judging from TSoL:Carrot source code, the error is caused by event.player being null here, which really shouldn't be possible. My guess is some other mod is somehow interfering with the FoodStats modifications of AppleCore (skipping/modifying the modified constructor of FoodStats within EntityPlayer init? Overwriting FoodStats entirely?).

If you could try narrowing down the potential conflicting mods, that'd help a lot.

Apocolyptik commented 6 years ago

i've narrowed it down to these mods, they're the only new ones i've added to the bundle that i play with (i also have the latest version of Cyclic but i tried taking it out to see if it affected anything and nothing changed)

HammerCore 1.12.2-1.9.9.11 randomtweaks-1.12.2-2.0.0.1 BaseMetals-1.12-2.5.0-beta5.214 ModernMetals-1.12-2.5.0-beta5.120 NetherMetals-1.12-1.2.0-beta3.52 OreSpawn-1.12-3.3.0.136 mysticalagriculture-1.12-1.6.10 cucumber-1.12-1.1.0 moartinkers-0.5.4 weaponlevels-2.5.0 armoryexpansion-0.1.1a CookingForBlockheads_1.12.2-6.4.39

i crash whenever i eat anything btw, whether it's a vanilla Minecraft steak or a modded food item like Cyclic's inventory crafting table cake.... thingy

squeek502 commented 6 years ago

Great, thanks. Will try to reproduce it and see what's going on.

Apocolyptik commented 6 years ago

interesting, i removed Spice of Life: Carrot Edition and my game stopped crashing whenever i tried to eat something. should i poke the creator of that mod and let them know what's going on as well??

squeek502 commented 6 years ago

I believe it's a conflict between AppleCore and RandomTweaks, as RandomTweaks overloads FoodStats, which would cause this error. It's not related to Spice of Life: Carrot Edition.

I'll make an issue on Random Tweaks' issue tracker with suggestions about how to fix this in a bit.

Apocolyptik commented 6 years ago

ohhh, alrighty! i guess this can be closed now? :D thanks for looking into this!!

squeek502 commented 6 years ago

Leaving this open until I add some better error messages for this type of thing in AppleCore.

squeek502 commented 6 years ago

Better error messages added in 68dcd8bb357c9a6dabd0c5e4a399d9ba0807df91, RandomTweaks added support in https://github.com/TheRandomLabs/RandomTweaks/commit/0489814bc8b4c84925c27dd81610f2ae6965571e

Closing