mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-26 15:03:04 +00:00
Unlock wrapped registries when firing register events. (#10036)
Co-authored-by: LexManos <[email protected]>
This commit is contained in:
1 parent
28d4205a97
commit
9d4f283e6b
1 file changed
+6
@@ -685,10 +685,16 @@ public class ForgeRegistry<V> implements IForgeRegistryInternal<V>, IForgeRegist
|
||||
*/
|
||||
public void freeze() {
|
||||
this.isFrozen = true;
|
||||
var wrapper = this.getWrapper();
|
||||
if (wrapper != null)
|
||||
wrapper.locked = true;
|
||||
}
|
||||
|
||||
public void unfreeze() {
|
||||
this.isFrozen = false;
|
||||
var wrapper = this.getWrapper();
|
||||
if (wrapper != null)
|
||||
wrapper.locked = false;
|
||||
}
|
||||
|
||||
void dump(ResourceLocation name) {
|
||||
|
||||
Reference in new issue
Block a user