mirror of
https://github.com/GTNewHorizons/GTNHLib.git
synced 2026-10-25 20:22:29 +00:00
fix casting
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user