Omnifactory

Omnifactory

571k Downloads

Add "Fix Experience Bug" mod to fix XP disappearing on dimension change

amedeo03 opened this issue ยท 9 comments

commented

version: nomifactory-dev-8dd51a9-client - vanilla, didn't add any mod or edited mod configs

When using Journey map's waypoint or Overworld cake/Voidworld cake to travel between dimensions I visually and functionally loose every level of experience I have. The game consider it as if you have no xp (i.e. enchanting won't work). If I then do an action that would net me any amount of experience, like killing a mob or getting a smelted item from a furnace, the previously lost XP is then gained back. This does not happen when TPing in the same dimension.
I wasn't able to test if that would happen when traveling to other dimensions or with other means of travel. I can reproduce this consistently, even after a game restart.

I uploaded an unlisted video on youtube here showcasing the bug: https://youtu.be/a0cB5yycQb4

some more info on my installation:
OS: Arch Linux with Linux 6.12.10-arch1-1
java: 1.8_442 64bit (as seen in the F3 screen)
launcher: Prism

commented

In Nomi-CEu, we do not have this issue because of UniversalTweaks, which fixes the wider general player client desync when travelling between dimensions.

Also generally, UT is a good mod, and it replaces many other mods, so I would recommend its addition to nomi being considered in the future.

commented

Thanks for the suggestion @IntegerLimit. I've had that mod on my radar for a while but have not taken the time to look into it thoroughly. I'll make a point to do so.

commented

UT is overall great but the fact is that its Experience Bug Fix part just won't work, at least on NFU. Not sure what's causing it but I was still experiencing this issue, I still gotta use the fix-experience-bug mod to fix it.

commented

Vanilla minecraft bug. It's a client desync resulting from switching dimensions. There's myriad interrelated issues on Mojang's tracker opened over the years for a wide range of affected versions with this problem.

For more info, see e.g.: https://bugs.mojang.com/browse/MC-92916

commented

Thanks for the clarification

commented

Looked at the source code and yeah seems like it should work. It adds an event hook that adds 0 experience to a player changing dimensions, which should force a re-sync.

commented

I briefly tested it and it seem to be fixing the bug as expected. Would it be possible to add it to the pack in a future dev snapshot?

commented

I'll take it under consideration.