onDisable

open override fun onDisable()

This method is run whenever the module is disabled.

Its default implementation unregisters the module to the Forge MinecraftForge.EVENT_BUS unless it has the AlwaysActive annotation.

Override it in your implementation to change this behaviour or add extra functionality.