Skip to content

Serialization fails for FakePlayers #13

@Darkere

Description

@Darkere

For editing playerdata while the players are offline I load the player in as a fake player, do some changes and then resaved.
https://github.com/Darkere/CrashUtilities/blob/c18402c1c5f6e181d73c85b037a7b2ce8a8abae0/src/main/java/com/darkere/crashutils/WorldUtils.java#L73

During this save the curios serialization fails because the CuriosInventory does not seem to get initialized for Fakeplayers.

Any chance this can be changed? Maybe there are some changes I can do to the fakeplayer that will allow them to initialise?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions