Closed iMoonDay closed 1 day ago
I think you shouldnt synchronise there, check NeoForgeEventHandler class and find PlayerEvent.Clone and check how Ive made cloning the attachment data. If that wont help I can help you further when I get back from vacation on monday
NeoForge-1.21-10.0.5
Hello, I'm a developer of the Soulbound mod.
I'm testing my mod with your mod (NeoForge-1.21-10.0.5) and the game throws an exception when calling the following code in
PlayerEvent.Clone
event, but the game does not crash:I'm not sure if it's appropriate to call this method when copying a player. Is this considered a bug?
I'm assuming it's probably because the newPlayer here hasn't been added to the world yet causing the playerEntity to be null.