without more information like screenshots there isn't much that we can do to help
since finishing my gold farm the issue hasn't been occuring anymore, I can only assume that since my portal is just under the nether roof, mobs could only spawn there and were walking into the portal on their own, sorry for the inconvinience
I had cheats off, nothing should have been changed so it should have been 3
I'm pretty sure if you wait for about half an hour the game will save so if you have made a lot of progress you don't want to lose you might want to wait
spent about an hour trying to figure out the problem, thanks for the help
This is not a bug. You do not lose hunger in peaceful to help new players who just started the game. The only way to eat is to lose hunger, therefor you cannot eat in peaceful.