Removed @hook.enable decs from modules, added them to the on_enable() method of main.py.

This commit is contained in:
Dico200
2016-05-29 20:56:29 +02:00
parent e35fadc353
commit 5a757b7fb1
2 changed files with 6 additions and 2 deletions

View File

@@ -257,7 +257,6 @@ def on_player_command_preprocess(event):
event.setCancelled(True) event.setCancelled(True)
@hook.enable
def replace_ess_commands(): def replace_ess_commands():
try: try:

View File

@@ -19,12 +19,17 @@ except:
@hook.enable @hook.enable
def on_enable(): def on_enable():
if "blockplacemods" in shared["modules"]:
shared["modules"]["blockplacemods"].schedule_torch_breaker()
if "imbusy" in shared["modules"]:
shared["modules"]["imbusy"].replace_ess_commands()
info("RedstonerUtils enabled!") info("RedstonerUtils enabled!")
@hook.disable @hook.disable
def on_disable(): def on_disable():
shared["modules"]["reports"].stop_reporting() if "reports" in shared["modules"]:
shared["modules"]["reports"].stop_reporting()
info("RedstonerUtils disabled!") info("RedstonerUtils disabled!")