diff --git a/common/src/main/kotlin/fr/username404/snowygui/gui/elements/ClickButton.kt b/common/src/main/kotlin/fr/username404/snowygui/gui/elements/ClickButton.kt index 960c0ed..0893bc9 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/gui/elements/ClickButton.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/gui/elements/ClickButton.kt @@ -42,7 +42,7 @@ class ClickButton( if (!toggled) lightUp() else lightDown() if ((kind == Type.TOGGLE)) { toggled = !toggled - if (toggled) execAction() + execAction() } } }