Port watermark mod

This commit is contained in:
ThisIsALegitUsername 2022-12-27 21:41:49 +00:00
parent 8e4b97e760
commit b624959f84
4 changed files with 7 additions and 7 deletions

View File

@ -20,7 +20,7 @@ public class ServerInfo extends RenderModule{
public String getText(){
if(mc.getNetHandler() != null){
return "[Playing on: " + mc.getNetHandler().getNetManager().getServerURI() + "]";
return "[Playing on: " + "Placeholder" + "]";
}
return "[Playing on: Not connected]";
}

View File

@ -4,8 +4,8 @@ import dev.resent.Resent;
import dev.resent.module.base.Category;
import dev.resent.module.base.RenderModule;
import dev.resent.util.render.Color;
GlStateManager.popMatrix();
import net.minecraft.src.FontRenderer;
import net.lax1dude.eaglercraft.v1_8.opengl.GlStateManager;
import net.minecraft.client.gui.FontRenderer;
public class Watermark extends RenderModule{
@ -23,11 +23,11 @@ public class Watermark extends RenderModule{
this.setWidth(fr.getStringWidth(Resent.NAME + " client 3.2 ")*2);
GlStateManager.pushMatrix();
EaglerAdapter.glTranslatef(this.x + 1, this.y + 1, 0);
EaglerAdapter.glTranslatef(-(this.x + 1), -(this.y + 1), 0);
EaglerAdapter.glScalef(2f, 2f, 2f);
GlStateManager.translate(this.x + 1, this.y + 1, 0);
GlStateManager.translate(-(this.x + 1), -(this.y + 1), 0);
GlStateManager.scale(2f, 2f, 2f);
int i = fr.drawString(Resent.NAME + " client", (this.x+1)/2, (this.y+1)/2, Color.RED.getRGB(), true);
EaglerAdapter.glScalef(0.5f, 0.5f, 0.5f);
GlStateManager.scale(0.5f, 0.5f, 0.5f);
fr.drawString(Resent.VERSION + "", (i*2), this.y+(fr.FONT_HEIGHT*2-7), -1, true);
GlStateManager.popMatrix();