mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
Loosen up registry locks until data freeze.
This commit is contained in:
1 parent
d032a34aaa
commit
dd42f84a47
3 files changed
+9
-4
No files matched your search
@@ -662,10 +662,12 @@ public class GameData
|
||||
{
|
||||
List<ResourceLocation> keys = Lists.newArrayList(RegistryManager.ACTIVE.registries.keySet());
|
||||
Collections.sort(keys, (o1, o2) -> o1.toString().compareToIgnoreCase(o2.toString()));
|
||||
/*
|
||||
RegistryManager.ACTIVE.registries.forEach((name, reg) -> {
|
||||
if (filter.test(name))
|
||||
((ForgeRegistry<?>)reg).unfreeze();
|
||||
});
|
||||
*/
|
||||
|
||||
if (filter.test(BLOCKS))
|
||||
{
|
||||
@@ -686,9 +688,11 @@ public class GameData
|
||||
ObjectHolderRegistry.INSTANCE.applyObjectHolders(); // inject everything else
|
||||
|
||||
|
||||
/*
|
||||
RegistryManager.ACTIVE.registries.forEach((name, reg) -> {
|
||||
if (filter.test(name))
|
||||
((ForgeRegistry<?>)reg).freeze();
|
||||
});
|
||||
*/
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user