mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-01 01:30:00 -04:00
Fix crash when remapping registries. Closes #967
This commit is contained in:
parent
74cc3b2021
commit
847665c2f2
2 changed files with 2 additions and 1 deletions
fabric-registry-sync-v0
|
@ -1,5 +1,5 @@
|
|||
archivesBaseName = "fabric-registry-sync-v0"
|
||||
version = getSubprojectVersion(project, "0.4.0")
|
||||
version = getSubprojectVersion(project, "0.4.1")
|
||||
|
||||
dependencies {
|
||||
compile project(path: ':fabric-api-base', configuration: 'dev')
|
||||
|
|
|
@ -341,6 +341,7 @@ public abstract class MixinIdRegistry<T> implements RemappableRegistry, Listenab
|
|||
}
|
||||
|
||||
// Add the new object, increment nextId to match.
|
||||
field_26682.size(Math.max(this.field_26682.size(), id + 1));
|
||||
field_26682.set(id, object);
|
||||
field_26683.put(object, id);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue