diff options
author | Clicks <58398364+CuzImClicks@users.noreply.github.com> | 2022-04-29 11:24:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-29 11:24:43 +0200 |
commit | 48253eddf00cf5d94ecc2eb6b63e7c490b3145be (patch) | |
tree | b74b3674eb12a168e3e93da1f3ff0119116c3411 /src/main/java/me/Danker/gui/alerts/AlertActionGui.java | |
parent | 5f6ce80319b21d53abbec15886f4e2fbd765f748 (diff) | |
parent | 36a30bd1a2097b6ab45c27bd248cbea4e292499f (diff) | |
download | SkyblockMod-48253eddf00cf5d94ecc2eb6b63e7c490b3145be.tar.gz SkyblockMod-48253eddf00cf5d94ecc2eb6b63e7c490b3145be.tar.bz2 SkyblockMod-48253eddf00cf5d94ecc2eb6b63e7c490b3145be.zip |
Merge branch 'development' into development
Diffstat (limited to 'src/main/java/me/Danker/gui/alerts/AlertActionGui.java')
-rw-r--r-- | src/main/java/me/Danker/gui/alerts/AlertActionGui.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main/java/me/Danker/gui/alerts/AlertActionGui.java b/src/main/java/me/Danker/gui/alerts/AlertActionGui.java index 7a73f5a..4853ac1 100644 --- a/src/main/java/me/Danker/gui/alerts/AlertActionGui.java +++ b/src/main/java/me/Danker/gui/alerts/AlertActionGui.java @@ -60,9 +60,6 @@ public class AlertActionGui extends GuiScreen { Alerts.Alert alert = Alerts.alerts.get(id); RenderUtils.drawCenteredText(alert.alert, width, 10, 1D); - String alertText = alert.alert; - int textWidth = mc.fontRendererObj.getStringWidth(alertText); - new TextRenderer(mc, alertText, width / 2 - textWidth / 2, 10, 1D); } @Override @@ -80,12 +77,12 @@ public class AlertActionGui extends GuiScreen { mc.displayGuiScreen(new AlertAddGui(alert, id)); } else if (button == delete) { Alerts.alerts.remove(id); - Alerts.saveToFile(); + Alerts.save(); mc.displayGuiScreen(new AlertsGui(1)); return; } Alerts.alerts.set(id, alert); - Alerts.saveToFile(); + Alerts.save(); } } |