mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-25 14:34:28 +00:00
Substitutions need to be activated when they're registered, otherwise they won't appear in world, ever.
This commit is contained in:
1 parent
3df54d3d0f
commit
2451e49df2
1 file changed
+1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user