Skip to content

Commit

Permalink
Work around a Spigot breakage. Fixes #2450
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Dec 19, 2023
1 parent fa5cf21 commit 6e820d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Expand Up @@ -1000,8 +1000,8 @@ LinTag<?> toNative(net.minecraft.nbt.Tag foreign) {
}
if (foreign instanceof net.minecraft.nbt.CompoundTag compoundTag) {
LinCompoundTag.Builder builder = LinCompoundTag.builder();
for (var entry : compoundTag.tags.entrySet()) {
builder.put(entry.getKey(), toNative(entry.getValue()));
for (var entry : compoundTag.getAllKeys()) {
builder.put(entry, toNative(compoundTag.get(entry)));
}
return builder.build();
} else if (foreign instanceof net.minecraft.nbt.ByteTag byteTag) {
Expand Down
Expand Up @@ -999,8 +999,8 @@ LinTag<?> toNative(net.minecraft.nbt.Tag foreign) {
}
if (foreign instanceof net.minecraft.nbt.CompoundTag compoundTag) {
LinCompoundTag.Builder builder = LinCompoundTag.builder();
for (var entry : compoundTag.tags.entrySet()) {
builder.put(entry.getKey(), toNative(entry.getValue()));
for (var entry : compoundTag.getAllKeys()) {
builder.put(entry, toNative(compoundTag.get(entry)));
}
return builder.build();
} else if (foreign instanceof net.minecraft.nbt.ByteTag byteTag) {
Expand Down
Expand Up @@ -1000,8 +1000,8 @@ LinTag<?> toNative(net.minecraft.nbt.Tag foreign) {
}
if (foreign instanceof net.minecraft.nbt.CompoundTag compoundTag) {
LinCompoundTag.Builder builder = LinCompoundTag.builder();
for (var entry : compoundTag.tags.entrySet()) {
builder.put(entry.getKey(), toNative(entry.getValue()));
for (var entry : compoundTag.getAllKeys()) {
builder.put(entry, toNative(compoundTag.get(entry)));
}
return builder.build();
} else if (foreign instanceof net.minecraft.nbt.ByteTag byteTag) {
Expand Down

0 comments on commit 6e820d4

Please sign in to comment.