Update Watermark.java

This commit is contained in:
kirillsaint 2023-08-31 18:29:13 +06:00
parent 33d00ed6cc
commit 328c9b7b25

View File

@ -47,23 +47,23 @@ public class Watermark {
switch (Client.getInstance().getSettingsManager().getSettingByClass(GeneralMod.class, "Silent Logo Location").getValString()) { switch (Client.getInstance().getSettingsManager().getSettingByClass(GeneralMod.class, "Silent Logo Location").getValString()) {
case "Bottom Right Corner": case "Bottom Right Corner":
x = 5; x = 5;
y = scaledResolution.getScaledHeight() - 23; y = scaledResolution.getScaledHeight() - 23 + (21 / 2) - 5 + 3;
break; break;
case "Bottom Left Corner": case "Bottom Left Corner":
x = scaledResolution.getScaledWidth() - width; x = scaledResolution.getScaledWidth() - width;
y = scaledResolution.getScaledHeight() - 23; y = scaledResolution.getScaledHeight() - 23 + (21 / 2) - 5 + 3;
break; break;
case "Top Right Corner": case "Top Right Corner":
x = 5; x = 5;
y = 3; y = 3 + (21 / 2) - 5 - 3;
break; break;
case "Top Left Corner": case "Top Left Corner":
x = scaledResolution.getScaledWidth() - width; x = scaledResolution.getScaledWidth() - width;
y = 3; y = 3 + (21 / 2) - 5 - 3;
break; break;
} }
Client.getInstance().getSilentFontRenderer().drawString(Client.getInstance().getFullVersion(), x, y + (21 / 2) - 5 + 3, 10, SilentFontRenderer.FontType.TITLE); Client.getInstance().getSilentFontRenderer().drawString(Client.getInstance().getFullVersion(), x, y, 10, SilentFontRenderer.FontType.TITLE);
} }
public void render(int x, int y) { public void render(int x, int y) {