Skip to content

Commit

Permalink
Enable remapping for onTeleport
Browse files Browse the repository at this point in the history
  • Loading branch information
Adubbz committed Nov 8, 2024
1 parent b2a4eed commit 6aead88
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public MixinServerPlayer(Level p_250508_, BlockPos p_250289_, float p_251702_, G
super(p_250508_, p_250289_, p_251702_, p_252153_);
}

@Inject(method="teleport(Lnet/minecraft/world/level/portal/TeleportTransition;)Lnet/minecraft/server/level/ServerPlayer;", at=@At(value="TAIL"), remap = false)
@Inject(method="teleport(Lnet/minecraft/world/level/portal/TeleportTransition;)Lnet/minecraft/server/level/ServerPlayer;", at=@At(value="TAIL"))
public void onTeleport(TeleportTransition p_379854_, CallbackInfoReturnable<ServerPlayer> cir)
{
EventManager.fire(new PlayerEvent.ChangeDimension((ServerPlayer)(Player)this));
Expand Down

0 comments on commit 6aead88

Please sign in to comment.