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; }