nbt contd

This commit is contained in:
gnembon committed 2019-07-19 17:47:08 -03:00
1 parent 2b4be7d0b8
commit eee23e4ba6
4 files changed
+60 -39

No files matched your search

@@ -330,8 +330,8 @@ public class EntityValue extends Value
if (tags.size()==0)
return Value.NULL;
if (tags.size()==1)
return new NBTSerializableValue((CompoundTag) tags.get(0));
return ListValue.wrap(tags.stream().map(t -> new NBTSerializableValue((CompoundTag) t)).collect(Collectors.toList()));
return NBTSerializableValue.decodeTag(tags.get(0));
return ListValue.wrap(tags.stream().map(t -> NBTSerializableValue.decodeTag(t)).collect(Collectors.toList()));
}
catch (CommandSyntaxException ignored) { }
return Value.NULL;