Game instances with both this mod and Impersonate installed seem to crash when a player has a map in their inventory during impersonation :
crash-2022-07-20_21.40.42-server.txt (tested with Impersonate 2.6.1 and ServerCore 1.3.0-1.19).
Steps to reproduce :
Install ServerCore and Impersonate
Start an impersonation with /impersonate disguise as Pyrofab
Get a map
It looks like this crash is caused by MapItemSavedDataMixin assuming that a player's name always consists of a text literal, which is not the case when Impersonate is installed. This could most easily be fixed by adding an instanceof check before the cast.
Original issue : https://github.com/Ladysnake/Impersonate/issues/26
Game instances with both this mod and Impersonate installed seem to crash when a player has a map in their inventory during impersonation : crash-2022-07-20_21.40.42-server.txt (tested with Impersonate 2.6.1 and ServerCore 1.3.0-1.19).
Steps to reproduce :
/impersonate disguise as Pyrofab
It looks like this crash is caused by MapItemSavedDataMixin assuming that a player's name always consists of a text literal, which is not the case when Impersonate is installed. This could most easily be fixed by adding an instanceof check before the cast.