Skip to content

Commit

Permalink
fix mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yh-china committed Nov 20, 2023
1 parent ea49156 commit db479c1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import net.minecraft.network.ClientConnection;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.PlayerManager;
import net.minecraft.server.network.ConnectedClientData;
import net.minecraft.server.network.ServerPlayerEntity;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
Expand All @@ -16,7 +17,7 @@ public abstract class MixinPlayerList {
@Shadow public abstract MinecraftServer getServer();

@Inject(method = "onPlayerConnect", at = @At("RETURN"))
private void playerLoggedIn(ClientConnection netManager, ServerPlayerEntity player, CallbackInfo ci) {
private void playerLoggedIn(ClientConnection connection, ServerPlayerEntity player, ConnectedClientData clientData, CallbackInfo ci) {
CommonInterop.playerLoggedIn(player);
}

Expand Down

0 comments on commit db479c1

Please sign in to comment.