Force a global asset scan prior to mod construction : you should be able to

reference assets anywhere in your mod now.
This commit is contained in:
Christian 2013-07-10 00:42:40 -04:00
parent 28727a51a6
commit 32680bb84d
5 changed files with 19 additions and 0 deletions

View File

@ -585,4 +585,10 @@ public class FMLClientHandler implements IFMLSidedHandler
}
}
}
@Override
public void updateResourcePackList()
{
client.func_110436_a();
}
}

View File

@ -491,4 +491,9 @@ public class FMLCommonHandler
{
sidedDelegate.addModAsResource(container);
}
public void updateResourcePackList()
{
sidedDelegate.updateResourcePackList();
}
}

View File

@ -64,4 +64,6 @@ public interface IFMLSidedHandler
void disconnectIDMismatch(MapDifference<Integer, ItemData> s, NetHandler toKill, INetworkManager mgr);
void addModAsResource(ModContainer container);
void updateResourcePackList();
}

View File

@ -95,6 +95,7 @@ public class LoadController
}
eventChannels = eventBus.build();
FMLCommonHandler.instance().updateResourcePackList();
}
public void distributeStateMessage(LoaderState state, Object... eventData)

View File

@ -195,4 +195,9 @@ public class FMLServerHandler implements IFMLSidedHandler
{
// NOOP on server
}
@Override
public void updateResourcePackList()
{
// NOOP on server
}
}