diff --git a/bin/main/dev/resent/module/impl/hud/Ping.class b/bin/main/dev/resent/module/impl/hud/Ping.class index 0840a19c..43693d0a 100644 Binary files a/bin/main/dev/resent/module/impl/hud/Ping.class and b/bin/main/dev/resent/module/impl/hud/Ping.class differ diff --git a/src/main/java/dev/resent/module/impl/hud/Ping.java b/src/main/java/dev/resent/module/impl/hud/Ping.java index 73ea85fb..39c85003 100644 --- a/src/main/java/dev/resent/module/impl/hud/Ping.java +++ b/src/main/java/dev/resent/module/impl/hud/Ping.java @@ -3,7 +3,6 @@ package dev.resent.module.impl.hud; import dev.resent.module.base.Category; import dev.resent.module.base.RenderModule; import dev.resent.setting.BooleanSetting; -import net.minecraft.client.Minecraft; public class Ping extends RenderModule{ public Ping(){ @@ -18,13 +17,12 @@ public class Ping extends RenderModule{ int ms = 0; if(mc.isSingleplayer()){ ms = -1; - }else if(mc.getServerData() != null){ - ms = (int)mc.getServerData().pingToServer; } + ms = (int)mc.getCurrentServerData().pingToServer; this.setHeight(mc.fontRendererObj.FONT_HEIGHT+4); this.setWidth(mc.fontRendererObj.getStringWidth("[" + ms + " ms]")+4); - Minecraft.getMinecraft().fontRenderer.drawString("[" + ms + " ms]", this.x+2, this.y+2, -1, tshadow.getValue()); + mc.fontRendererObj.drawString("[" + ms + " ms]", this.x+2, this.y+2, -1, tshadow.getValue()); } }