RPG-Hud [Forge]

RPG-Hud [Forge]

4M Downloads

Changing Item in main hand while holding food in off hand causes crash

thephoenixlodge opened this issue ยท 3 comments

commented

https://pastebin.com/9R8f2dFp
Found with 3.5.2, as yet have not had the chance to test with 3.6+
Seems to be somewhat inconsistent, first time it was encountered was with pineapples from Plants, then with Peaches from Terraqueous, yet then didn't crash with vanilla apples. Has been observed to occur when changing item simply by scrolling across the hotbar, and by placing the held item (specifically observed with a jungle wood boat)

commented

I was able to replicate by simply switching steak into my off hand and scrolling. Happened almost instantly and honestly surprised me how easy it was to replicate. This was done moments ago using version 3.6.1

commented

I'll take a look tomorrow (3am here).
If I can find the problem (should be easy enough) I'll release the fix probably 1-2h later

commented

Found the issue (crash when holding food in off hand while having less than maximum hunger and having no item in the main hand). I didn't properly check for that case. It's fixed now. Just gotta wait for curse to accept and check the 3.6.2 version.

PS: Please report any bugs you find (I have no testers for the mod and I simply dont have the time to test it much) so I have to rely on users to report bugs. You got my word I'll try to fix the bugs as soons as possible (usually the same or enxt day)