Intern map keys in BlockStateData

This commit is contained in:
embeddedt 2026-01-25 19:41:29 -05:00
parent 3926f27d33
commit cff29149db
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -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));
} }