Update GUISpaceCompound.kt

This commit is contained in:
bluefireoly
2020-10-30 16:11:22 +01:00
parent c6e7cf4982
commit dd54d828a9

View File

@@ -16,6 +16,10 @@ class GUISpaceCompoundElement<T : ForInventory, E> 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)