Scaling Health

Scaling Health

23M Downloads

[1.20.1] Unable to load into previously created worlds more than once per session, kicked with "Invalid player data"

antibang opened this issue ยท 1 comments

commented

Versions

  • ScalingHealth-1.20.1-8.0.0+7
  • silent-lib-1.20.1-8.0.0
  • Forge-47.1.43
  • Modpack: Only additional mod is Global Packs
  • Optifine Installed: No

Expected Behavior

I expect to be able to load back into a previously created world more than once without restarting the game.

Actual Behavior

When creating a world and able to load in successfully, then exiting the world (back into the main menu) and trying to load into the previously created world, I'm kicked with the message "Invalid player data". After restarting the game I can successfully load into the world again. I can also create additional new worlds, but I cannot rejoin them if it's within the same session until restarting my game.

However, I noticed this doesn't happen if I use the default settings Scaling Health comes with. I did change some stuff in the mechanics files. I think I narrowed it down to the items.json file specifically. When I replaced my edits with the mod's defaults, I can load into any previously created world with no problem.

I'm not sure if I've set one of the values to something they shouldn't be, so I included a link to the file below

Links/Images

Steps to Reproduce the Problem

  1. Edit the values in the items.json file
  2. Create a new world or join any other previously created world
  3. Exit back into the main menu
  4. Try loading back into the world
commented

In the items json try putting 1 instead of 0.5 in heartCrystalHealthIncrease
1 corresponds to half a heart (2 is a full heart).
0.5 doens't work and is being changed to 0 in the code and causing this bug I think.