mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-15 00:15:33 +01:00
fix first entering teapot failure (#2259)
This commit is contained in:
@@ -99,7 +99,13 @@ public class SceneScriptManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public SceneConfig getConfig() {
|
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() {
|
public Map<Integer, SceneBlock> getBlocks() {
|
||||||
|
|||||||
Reference in New Issue
Block a user