Skip to content

Conversation

FengLucky
Copy link
Contributor

从 Excel 和 Xml 导入定义时 Tags 默认值是一个没有元素的 Dictionary 集合,而自动导入定义时 Tags 默认值 null。
如果代码模板中使用了 tags 可能会报空指针。例如:

{{if __table.tags["tag"] == "test"}}
// {{__table.tags["tag"]}}
{{end}}

image

@pirunxi
Copy link
Contributor

pirunxi commented Jul 1, 2025

正常来说应该要用get_tag及has_tag来访问tag相关数据,而不是你这样的用法。不过你这样改也没啥问题。

@pirunxi pirunxi merged commit 98d58a2 into focus-creative-games:main Jul 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants