mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-11 22:45:38 -04:00
fix(attsync): use correct event for transferring attachments during respawn (#4483)
(cherry picked from commit e99da0f77a
)
This commit is contained in:
parent
6adb0bc031
commit
47c2d8a0c2
1 changed files with 1 additions and 1 deletions
|
@ -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) ->
|
||||
|
|
Loading…
Add table
Reference in a new issue