Fix args order in player clone event (supersedes and closes #391)

This commit is contained in:
Max
2023-04-05 16:33:51 +02:00
parent b8dcba2ee5
commit b1e7c89ffb

View File

@@ -37,7 +37,7 @@ import java.util.OptionalInt;
public class MixinServerPlayer {
@Inject(method = "restoreFrom", at = @At("RETURN"))
private void restoreFrom(ServerPlayer serverPlayer, boolean bl, CallbackInfo ci) {
PlayerEvent.PLAYER_CLONE.invoker().clone((ServerPlayer) (Object) this, serverPlayer, bl);
PlayerEvent.PLAYER_CLONE.invoker().clone(serverPlayer, (ServerPlayer) (Object) this, bl);
}
@Inject(method = "openMenu", at = @At("RETURN"))