onDisable

open fun onDisable()

This method is run whenever the module is disabled.

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

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