Intern map keys in BlockStateData
This commit is contained in:
parent
3926f27d33
commit
cff29149db
|
|
@ -35,7 +35,7 @@ public class BlockStateDataMixin {
|
||||||
t = compactTag(ct);
|
t = compactTag(ct);
|
||||||
}
|
}
|
||||||
t = TAG_INTERNER.addOrGet(t);
|
t = TAG_INTERNER.addOrGet(t);
|
||||||
entries[i++] = Map.entry(key, t);
|
entries[i++] = Map.entry(key.intern(), t);
|
||||||
}
|
}
|
||||||
return new CompoundTag(Map.ofEntries(entries));
|
return new CompoundTag(Map.ofEntries(entries));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user