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)