Skip to content

Commit

Permalink
Merge pull request #124 from FTBTeam/bugfix/1.21/fix-map-confi
Browse files Browse the repository at this point in the history
[1.21] Fix StringMapValue config gettings keys from wrong compound
  • Loading branch information
desht authored Sep 24, 2024
2 parents 5f2c9a7 + 9f2e7bd commit a8a4208
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,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 a8a4208

Please sign in to comment.