@
squeek502 Have you tried at all to patch any of the other mods with BnBTweaks like Hostile Worlds? I've spent around 9 hours today teaching myself ASM and attempting to patch it, but the location of the boss spawn location variable has left me fairly stumped without fully rewriting the method....
PS: How did you learn ASM? Got any helpful links?
Nope, haven't done anything else with BnBTweaks. Do you have a way to view the bytecode of the code you're patching? I believe I use
this Eclipse plugin. A good method is to copy the source file that you want to patch into your project and make the changes you intend to make. Then, view the bytecode and note the changes that your inserted code makes and inject that bytecode sequence in the proper location using ASM. I've gone a bit ASM crazy with my recent mods, so you can see some more example code
here and
here.
Also note that I'm not a strong Java developer (Minecraft mods are my first introduction to it) and I have no idea if I'm using ASM in the best way.
This has popped up a few times in the past few pages, but no clear reason or fix for it yet. If you have a clear, reproducible case that shows this, I believe @
squeek502 offered to take a look at it. The problem is everyone who's seen this later had it clear up and couldn't reproduce it again.
That said... just as a test, you might disable Spice of Life mod temporarily and see if that fixes it for you. Not saying it's SoL for sure of course, but it might be worth a shot.
Yes, if I had a reliable method of reproducing it, I could have it fixed very quickly. From what others have said, though, simply restarting Minecraft seems to fix it.
I've actually started to doubt whether it's possible that it's being caused by The Spice of Life. My suspicion was that somehow
this code that very briefly turns off Hunger Overhaul's health regen could have been the cause (as in, somehow the health regen config option would stay off instead of being reset to what it used to be), but that code is only run client-side, so it'd actually only cause an extremely brief desync (the client wouldn't know about the regen until the server synced health, which would be instantaneous because health gets synced whenever hunger changes).
My guess is that somehow players are not getting their FoodStats overwritten by Hunger Overhaul's IguanaFoodStats implementation in certain cases (see
this code for when Hunger Overhaul overwrites FoodStats).