fix(attsync): use correct event for transferring attachments during respawn ()

This commit is contained in:
Octol1ttle 2025-03-09 13:58:08 +00:00 committed by GitHub
parent 38b0d598da
commit e99da0f77a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,7 +29,7 @@ public class AttachmentEntrypoint implements ModInitializer {
@Override
public void onInitialize() {
ServerPlayerEvents.COPY_FROM.register((oldPlayer, newPlayer, alive) ->
ServerPlayerEvents.AFTER_RESPAWN.register((oldPlayer, newPlayer, alive) ->
AttachmentTargetImpl.transfer(oldPlayer, newPlayer, !alive)
);
ServerEntityWorldChangeEvents.AFTER_ENTITY_CHANGE_WORLD.register(((originalEntity, newEntity, origin, destination) ->