From ada36c34c7812616e293c116ad85f8fad82f9725 Mon Sep 17 00:00:00 2001 From: James Seibel Date: Sun, 12 Oct 2025 15:30:20 -0500 Subject: [PATCH] minor client wrapper refactor for clarity --- .../wrappers/minecraft/MinecraftClientWrapper.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/minecraft/MinecraftClientWrapper.java b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/minecraft/MinecraftClientWrapper.java index 09b6faad8..a4578357a 100644 --- a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/minecraft/MinecraftClientWrapper.java +++ b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/minecraft/MinecraftClientWrapper.java @@ -158,9 +158,17 @@ public class MinecraftClientWrapper implements IMinecraftClientWrapper, IMinecra @Override public boolean hasSinglePlayerServer() { return MINECRAFT.hasSingleplayerServer(); } @Override - public boolean clientConnectedToDedicatedServer() { return MINECRAFT.getCurrentServer() != null && !this.hasSinglePlayerServer(); } + public boolean clientConnectedToDedicatedServer() + { + return MINECRAFT.getCurrentServer() != null + && !this.hasSinglePlayerServer(); + } @Override - public boolean connectedToReplay() { return !MINECRAFT.hasSingleplayerServer() && MINECRAFT.getCurrentServer() == null; } + public boolean connectedToReplay() + { + return MINECRAFT.getCurrentServer() == null + && !this.hasSinglePlayerServer() ; + } @Override public String getCurrentServerName()