mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 11:59:25 +00:00
More work on registry override ability. Closes #4079
This commit is contained in:
1 parent
460abf1554
commit
3ae30478db
5 files changed
+181
-41
No files matched your search
@@ -143,10 +143,10 @@ public class RegistryBuilder<T extends IForgeRegistryEntry<T>>
|
||||
if (addCallback.size() == 1)
|
||||
return addCallback.get(0);
|
||||
|
||||
return (owner, stage, id, obj) ->
|
||||
return (owner, stage, id, obj, old) ->
|
||||
{
|
||||
for (AddCallback<T> cb : this.addCallback)
|
||||
cb.onAdd(owner, stage, id, obj);
|
||||
cb.onAdd(owner, stage, id, obj, old);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user