Skip to content

Commit

Permalink
Fix value already present error (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
juraj-hrivnak authored Jul 23, 2024
1 parent 6067df5 commit bbeaefd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ public abstract class ForgeRegistryMixin<V extends IForgeRegistryEntry<V>> imple

@Override
public void groovyScript$forceAdd(V entry, int id, Object owner) {
names.put(entry.getRegistryName(), entry);
ids.put(id, entry);
if (owner != null) owners.put(owner, entry);
names.forcePut(entry.getRegistryName(), entry);
ids.forcePut(id, entry);
if (owner != null) owners.forcePut(owner, entry);
availabilityMap.set(id);
}

Expand Down

0 comments on commit bbeaefd

Please sign in to comment.