fix casting

This commit is contained in:
0hwx committed 2026-10-15 14:51:33 +03:00
1 parent 51c6860727
commit 219b6fb126
1 file changed
+2 -2
@@ -239,8 +239,8 @@ public final class NbtOps implements DynamicOps<NBTBase> {
}
private Stream<Pair<NBTBase, NBTBase>> streamMapEntries(NBTTagCompound compound) {
return compound.tagMap.entrySet().stream()
.map(entry -> Pair.of(createString(entry.getKey()), entry.getValue()));
Map<String, NBTBase> nbtBaseMap = (Map<String, NBTBase>) compound.tagMap;
return nbtBaseMap.entrySet().stream().map(entry -> Pair.of(createString(entry.getKey()), entry.getValue()));
}
@Override