mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-14 16:04:40 +01:00
fix first entering teapot failure (#2259)
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user