mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 02:55:17 +00:00
FUUUUUU! Stupid ticking. STOP REGISTERING TICK HANDLERS IN YOUR CONSTRUCTORS.
I'm looking at you Rei's!
This commit is contained in:
1 parent
6edce8b5f4
commit
8356fe9a7b
1 file changed
+8
@@ -66,6 +66,10 @@ public class ModLoaderHelper
|
|||||||
{
|
{
|
||||||
ModLoaderModContainer mlmc = (ModLoaderModContainer) Loader.instance().getReversedModObjectList().get(mod);
|
ModLoaderModContainer mlmc = (ModLoaderModContainer) Loader.instance().getReversedModObjectList().get(mod);
|
||||||
if (mlmc==null)
|
if (mlmc==null)
|
||||||
|
{
|
||||||
|
mlmc = (ModLoaderModContainer) Loader.instance().activeModContainer();
|
||||||
|
}
|
||||||
|
if (mlmc == null)
|
||||||
{
|
{
|
||||||
FMLLog.severe("Attempted to register ModLoader ticking for invalid BaseMod %s",mod);
|
FMLLog.severe("Attempted to register ModLoader ticking for invalid BaseMod %s",mod);
|
||||||
return;
|
return;
|
||||||
@@ -92,6 +96,10 @@ public class ModLoaderHelper
|
|||||||
{
|
{
|
||||||
ModLoaderModContainer mlmc = (ModLoaderModContainer) Loader.instance().getReversedModObjectList().get(mod);
|
ModLoaderModContainer mlmc = (ModLoaderModContainer) Loader.instance().getReversedModObjectList().get(mod);
|
||||||
if (mlmc==null)
|
if (mlmc==null)
|
||||||
|
{
|
||||||
|
mlmc = (ModLoaderModContainer) Loader.instance().activeModContainer();
|
||||||
|
}
|
||||||
|
if (mlmc == null)
|
||||||
{
|
{
|
||||||
FMLLog.severe("Attempted to register ModLoader ticking for invalid BaseMod %s",mod);
|
FMLLog.severe("Attempted to register ModLoader ticking for invalid BaseMod %s",mod);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in new issue
Block a user