diff --git a/CHANGELOG.md b/CHANGELOG.md index 83bb23e..77eec50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +### 3.0.27 +##### Minecraft 1.21.2, 1.21.3 + +1) Fix session issue for real this time + ### 3.0.26 ##### Minecraft 1.21.2, 1.21.3 diff --git a/gradle.properties b/gradle.properties index e731efe..afcbf65 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ # Mod mod_name=EasyAuth mod_id=easyauth -mod_version=3.0.26 +mod_version=3.0.27 # Fabric minecraft_version=1.21.2 diff --git a/src/main/java/xyz/nikitacartes/easyauth/mixin/PlayerManagerMixin.java b/src/main/java/xyz/nikitacartes/easyauth/mixin/PlayerManagerMixin.java index 7cb7a56..b039eaa 100644 --- a/src/main/java/xyz/nikitacartes/easyauth/mixin/PlayerManagerMixin.java +++ b/src/main/java/xyz/nikitacartes/easyauth/mixin/PlayerManagerMixin.java @@ -54,8 +54,12 @@ public abstract class PlayerManagerMixin { private MinecraftServer server; @Inject(method = "onPlayerConnect(Lnet/minecraft/network/ClientConnection;Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/server/network/ConnectedClientData;)V", at = @At("RETURN")) - private void onPlayerConnect(ClientConnection connection, ServerPlayerEntity player, ConnectedClientData clientData, CallbackInfo ci) { + private void onPlayerConnectReturn(ClientConnection connection, ServerPlayerEntity player, ConnectedClientData clientData, CallbackInfo ci) { AuthEventHandler.onPlayerJoin(player); + } + + @Inject(method = "onPlayerConnect(Lnet/minecraft/network/ClientConnection;Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/server/network/ConnectedClientData;)V", at = @At("HEAD")) + private void onPlayerConnectHead(ClientConnection connection, ServerPlayerEntity player, ConnectedClientData clientData, CallbackInfo ci) { ((PlayerAuth) player).easyAuth$setIpAddress(connection); }