Skip to content

Commit

Permalink
Merge pull request #130 from FTBTeam/bugfix/1.20.1/string-map-config
Browse files Browse the repository at this point in the history
[1.20.1] Backport StringMapConfig fixes
  • Loading branch information
desht authored Oct 30, 2024
2 parents 5cafcc5 + a0c7645 commit f7b649d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ public void write(SNBTCompoundTag tag) {
public void read(SNBTCompoundTag tag) {
Map<String, String> map = new HashMap<>();

for (String key : tag.getAllKeys()) {
map.put(key, tag.getString(key));
SNBTCompoundTag compound = tag.getCompound(key);
for (String key : compound.getAllKeys()) {
map.put(key, compound.getString(key));
}

set(map);
Expand Down

0 comments on commit f7b649d

Please sign in to comment.