mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-02-08 23:37:26 +08: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