Substitutions need to be activated when they're registered, otherwise they won't appear in world, ever.

This commit is contained in:
cpw 2015-03-22 12:54:05 -04:00
parent 3df54d3d0f
commit 2451e49df2
1 changed files with 1 additions and 0 deletions

View File

@ -1000,6 +1000,7 @@ public class GameData {
void registerSubstitutionAlias(String nameToSubstitute, Type type, Object toReplace) throws ExistingSubstitutionException
{
type.getRegistry().addSubstitutionAlias(Loader.instance().activeModContainer().getModId(),nameToSubstitute, toReplace);
type.getRegistry().activateSubstitution(nameToSubstitute);
}
static <T> RegistryDelegate<T> buildDelegate(T referant, Class<T> type)
{