From 3af556bc269731dc6df3bbd842a4294bbcc039f6 Mon Sep 17 00:00:00 2001 From: kirillsaint Date: Sun, 22 Oct 2023 13:46:23 +0600 Subject: [PATCH] Fix --- .../net/silentclient/client/mods/settings/GeneralMod.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/silentclient/client/mods/settings/GeneralMod.java b/src/main/java/net/silentclient/client/mods/settings/GeneralMod.java index 3c3a495..0398009 100644 --- a/src/main/java/net/silentclient/client/mods/settings/GeneralMod.java +++ b/src/main/java/net/silentclient/client/mods/settings/GeneralMod.java @@ -59,7 +59,9 @@ public class GeneralMod extends Mod { break; case "Menu Animations": case "Menu Animations Speed": - ClickGUI.introAnimation.setDuration(Client.getInstance().getSettingsManager().getSettingByName(this, "Menu Animations").getValBoolean() ? Client.getInstance().getSettingsManager().getSettingByName(this, "Menu Animations Speed").getValInt() : 1); + if(ClickGUI.introAnimation != null) { + ClickGUI.introAnimation.setDuration(Client.getInstance().getSettingsManager().getSettingByName(this, "Menu Animations").getValBoolean() ? Client.getInstance().getSettingsManager().getSettingByName(this, "Menu Animations Speed").getValInt() : 1); + } break; } }