fix tick and enable modules on world load
This commit is contained in:
parent
8fc80a75b8
commit
430ff443a6
3 changed files with 30 additions and 6 deletions
|
|
@ -45,11 +45,6 @@ public class Moonlight implements ModInitializer
|
|||
for (Module m : ModuleManager.INSTANCE.modules)
|
||||
{
|
||||
m.enabled = (boolean)((Map<String, Object>)((Map<String, Object>)CONFIG.config.get("modules")).get(m.name)).get("enabled");
|
||||
if (m.enabled)
|
||||
{
|
||||
//m.onEnable();
|
||||
// this doesnt work, will probably need to mixin to client server connection or something
|
||||
}
|
||||
for (Setting s : m.settings)
|
||||
{
|
||||
if (s instanceof BooleanSetting)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue