From 997bde4ec02da606b1b47e04a40ea3603b852226 Mon Sep 17 00:00:00 2001 From: ThisIsALegitUsername Date: Thu, 29 Dec 2022 15:57:44 +0000 Subject: [PATCH] Port serverinfo --- src/main/java/dev/resent/module/impl/hud/ServerInfo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/dev/resent/module/impl/hud/ServerInfo.java b/src/main/java/dev/resent/module/impl/hud/ServerInfo.java index 9429021e..ba011dbd 100644 --- a/src/main/java/dev/resent/module/impl/hud/ServerInfo.java +++ b/src/main/java/dev/resent/module/impl/hud/ServerInfo.java @@ -19,8 +19,8 @@ public class ServerInfo extends RenderModule{ } public String getText(){ - if(mc.getNetHandler() != null){ - return "[Playing on: " + "Placeholder" + "]"; + if(mc.getCurrentServerData() != null){ + return "[Playing on: " + mc.getCurrentServerData().serverIP + "]"; } return "[Playing on: Not connected]"; }