From 8356fe9a7bd0b5e5da0001b7f54b86058979192d Mon Sep 17 00:00:00 2001 From: Christian Date: Thu, 1 Nov 2012 10:51:17 -0400 Subject: [PATCH] FUUUUUU! Stupid ticking. STOP REGISTERING TICK HANDLERS IN YOUR CONSTRUCTORS. I'm looking at you Rei's! --- common/cpw/mods/fml/common/modloader/ModLoaderHelper.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common/cpw/mods/fml/common/modloader/ModLoaderHelper.java b/common/cpw/mods/fml/common/modloader/ModLoaderHelper.java index 4e4c23d240..6ad96699a0 100644 --- a/common/cpw/mods/fml/common/modloader/ModLoaderHelper.java +++ b/common/cpw/mods/fml/common/modloader/ModLoaderHelper.java @@ -66,6 +66,10 @@ public class ModLoaderHelper { ModLoaderModContainer mlmc = (ModLoaderModContainer) Loader.instance().getReversedModObjectList().get(mod); if (mlmc==null) + { + mlmc = (ModLoaderModContainer) Loader.instance().activeModContainer(); + } + if (mlmc == null) { FMLLog.severe("Attempted to register ModLoader ticking for invalid BaseMod %s",mod); return; @@ -92,6 +96,10 @@ public class ModLoaderHelper { ModLoaderModContainer mlmc = (ModLoaderModContainer) Loader.instance().getReversedModObjectList().get(mod); if (mlmc==null) + { + mlmc = (ModLoaderModContainer) Loader.instance().activeModContainer(); + } + if (mlmc == null) { FMLLog.severe("Attempted to register ModLoader ticking for invalid BaseMod %s",mod); return;