Skip to content

Commit

Permalink
Fix session issue for real this time
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaCartes committed Oct 27, 2024
1 parent 8613643 commit 3003b00
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 3003b00

Please sign in to comment.