Budschie / BudschieMorphMod

This is a port of the morph mod to forge 1.16.5
MIT License
11 stars 9 forks source link

Friend dropped morph and got kicked out of server, and couldn't join back. #96

Closed USSDXB closed 1 year ago

USSDXB commented 2 years ago

So one of my friends dropped a morph and got kicked out of our aternos server and got an "Invalid Player Data" error, when he tried to rejoin.

Budschie commented 2 years ago

What version of this mod are you using?

USSDXB commented 2 years ago

We were using the latest version,

TheM3ta commented 2 years ago

Hey my friend had the same issue, he was dropping a blaze morph while morphed as a bat, he went into singleplayer and the same thing happened, when looking at the console on the server it said something like index issue so I don't know how you coded the mod but it might have to do something with that, anyway the fix is pretty simple I just had to spam the command to add the blaze morph to his morph list while he was trying to join and with the right timing it worked and he could join again, hope that helps in some way

sansalife commented 2 years ago

a bit of added information to this to help budschie out. what is going on is when someone is on the morph in the last of the array and they delete one above it -say they are on morph number 4 of 4 and delete number 2, it creates an out of bounds index and kicks the player since it does not update the player morphed number from 4 to 3. this can be fixed by editing the player data and setting them at a lower number or deleting them from the world.

for those who have this issue, be sure you are not morphed when removing anything from your list just to be sure you are not on the last in the array :)

Budschie commented 1 year ago

This should be fixed in the newest version because the mod doesn't use indices anymore.