From dd54d828a95a3b0fda189284d801922721e89fda Mon Sep 17 00:00:00 2001 From: bluefireoly Date: Fri, 30 Oct 2020 16:11:22 +0100 Subject: [PATCH] Update GUISpaceCompound.kt --- .../kotlin/net/axay/kspigot/gui/elements/GUISpaceCompound.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/kotlin/net/axay/kspigot/gui/elements/GUISpaceCompound.kt b/src/main/kotlin/net/axay/kspigot/gui/elements/GUISpaceCompound.kt index c5476d35..73507584 100644 --- a/src/main/kotlin/net/axay/kspigot/gui/elements/GUISpaceCompound.kt +++ b/src/main/kotlin/net/axay/kspigot/gui/elements/GUISpaceCompound.kt @@ -16,6 +16,10 @@ class GUISpaceCompoundElement internal constructor( compound.onClickElement(clickEvent) } + // the following to methods register and unregister the instance + // for each compound element, but that is ok because it gets + // added/removed to/from a HashSet + override fun startUsing(gui: GUIInstance<*>) = compound.registerGUI(gui) override fun stopUsing(gui: GUIInstance<*>) = compound.unregisterGUI(gui)