refactor the challenge

This commit is contained in:
Akka
2022-05-23 20:55:22 +08:00
committed by Melledy
parent 717c2d1dd7
commit 791b9534b7
30 changed files with 713 additions and 280 deletions

View File

@@ -73,7 +73,7 @@ public class SceneGroup {
return bindings;
}
public SceneGroup load(int sceneId){
public synchronized SceneGroup load(int sceneId){
if(loaded){
return this;
}
@@ -118,6 +118,7 @@ public class SceneGroup {
garbages = new SceneGarbage();
if (garbagesTable.checktable().get("gadgets") != LuaValue.NIL) {
garbages.gadgets = ScriptLoader.getSerializer().toList(SceneGadget.class, garbagesTable.checktable().get("gadgets").checktable());
garbages.gadgets.forEach(m -> m.group = this);
}
}