From 43fee18ae4ca0e28545aacafbdbf99992cccd918 Mon Sep 17 00:00:00 2001 From: s809 <11816467-s809@users.noreply.gitlab.com> Date: Thu, 11 Jul 2024 22:08:21 +0500 Subject: [PATCH] Clean up a bit --- .../common/wrappers/misc/ServerPlayerWrapper.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/misc/ServerPlayerWrapper.java b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/misc/ServerPlayerWrapper.java index 22d34e821..4be82b6c6 100644 --- a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/misc/ServerPlayerWrapper.java +++ b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/misc/ServerPlayerWrapper.java @@ -29,12 +29,12 @@ public class ServerPlayerWrapper implements IServerPlayerWrapper public static ServerPlayerWrapper getWrapper(ServerPlayer serverPlayer) { - return serverPlayerWrapperMap.computeIfAbsent(serverPlayer.connection, ignored -> new ServerPlayerWrapper(serverPlayer)); + return serverPlayerWrapperMap.computeIfAbsent(serverPlayer.connection, ignored -> new ServerPlayerWrapper(serverPlayer.connection)); } - private ServerPlayerWrapper(ServerPlayer serverPlayer) + private ServerPlayerWrapper(ServerPlayerConnection connection) { - this.connection = serverPlayer.connection; + this.connection = connection; }