Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConfigReader.java加载配置文件,key string没有trim处理 #15

Open
hilouki opened this issue Apr 4, 2017 · 0 comments
Open

ConfigReader.java加载配置文件,key string没有trim处理 #15

hilouki opened this issue Apr 4, 2017 · 0 comments

Comments

@hilouki
Copy link

hilouki commented Apr 4, 2017

LGame/Java/Loon-Neo/src/loon/utils/ConfigReader.java

问题方法:
private final String loadItem(final String mes, final boolean save)

TDTest例子里的map.txt
begin name = "test"

等于号后面有个空格,解析出来的key是“ test”,也有一个空格。导致例子加载瓦片地图文件的时候通过test找配置文件返回空。规避方法是begin name ="test"。去掉这个空格。

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

No branches or pull requests

1 participant