From 448b85ceeb28c8b6b1c32f4f90d1e70b1d402041 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! --- .../cpw/mods/fml/common/modloader/ModLoaderHelper.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fml/common/cpw/mods/fml/common/modloader/ModLoaderHelper.java b/fml/common/cpw/mods/fml/common/modloader/ModLoaderHelper.java index 4e4c23d240..6ad96699a0 100644 --- a/fml/common/cpw/mods/fml/common/modloader/ModLoaderHelper.java +++ b/fml/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;