Skip to content

Commit 59b5616

Browse files
committed
[networking] fix PlayerManagerMixin in some 1.7 snapshots
1 parent 366ec2a commit 59b5616

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • libraries/networking-impl/networking-impl-mc13w41a-mc14w20b/src/main/java/net/ornithemc/osl/networking/impl/mixin/common

‎libraries/networking-impl/networking-impl-mc13w41a-mc14w20b/src/main/java/net/ornithemc/osl/networking/impl/mixin/common/PlayerManagerMixin.java‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
import org.spongepowered.asm.mixin.injection.Inject;
88
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
99

10-
import net.minecraft.network.Connection;
10+
import com.llamalad7.mixinextras.sugar.Local;
11+
1112
import net.minecraft.server.MinecraftServer;
1213
import net.minecraft.server.PlayerManager;
1314
import net.minecraft.server.entity.living.player.ServerPlayerEntity;
@@ -25,7 +26,7 @@ public class PlayerManagerMixin {
2526
value = "TAIL"
2627
)
2728
)
28-
private void osl$networking$handleLogin(Connection connection, ServerPlayerEntity player, CallbackInfo ci) {
29+
private void osl$networking$handleLogin(CallbackInfo ci, @Local ServerPlayerEntity player) {
2930
ServerConnectionEvents.LOGIN.invoker().accept(server, player);
3031
}
3132
}

0 commit comments

Comments
 (0)