Skip to content

Commit

Permalink
Merge pull request #245 from proferabg/master
Browse files Browse the repository at this point in the history
Fix UnsupportedOperationException on AbstractImmutableMap
  • Loading branch information
Exceptionflug authored Jul 2, 2024
2 parents efc4781 + c77c248 commit 23f4658
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package dev.simplix.protocolize.velocity.util;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

Expand Down Expand Up @@ -98,7 +99,7 @@ private static Class<? extends Tag> adventureTagTypeToQuerz(BinaryTagType<? exte
public static BinaryTag querzToAdventure(Tag<?> tag) {
if (tag instanceof CompoundTag) {
CompoundTag compoundTag = (CompoundTag) tag;
Map<String, BinaryTag> entries = Map.of();
Map<String, BinaryTag> entries = new HashMap<>(compoundTag.size());
for (Map.Entry<String, Tag<?>> entry : compoundTag.entrySet()) {
entries.put(entry.getKey(), querzToAdventure(entry.getValue()));
}
Expand Down

0 comments on commit 23f4658

Please sign in to comment.