mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-25 13:01:03 +00:00
fix first entering teapot failure (#2259)
This commit is contained in:
parent
d0a4da8a1f
commit
0d71d29932
@ -99,7 +99,13 @@ public class SceneScriptManager {
|
||||
}
|
||||
|
||||
public SceneConfig getConfig() {
|
||||
return this.isInit ? this.meta.config : null;
|
||||
for (int i = 0; i < 10; ++i) {
|
||||
if (this.isInit) {
|
||||
return this.meta.config;
|
||||
}
|
||||
Utils.sleep(100);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public Map<Integer, SceneBlock> getBlocks() {
|
||||
|
Loading…
Reference in New Issue
Block a user