fix scence block loading bug

This commit is contained in:
wulf 2022-05-06 23:21:23 +08:00 committed by Melledy
parent c4e11088da
commit 71095786b8

View File

@ -166,7 +166,7 @@ public class SceneScriptManager {
List<SceneBlock> blocks = ScriptLoader.getSerializer().toList(SceneBlock.class, bindings.get("block_rects")); List<SceneBlock> blocks = ScriptLoader.getSerializer().toList(SceneBlock.class, bindings.get("block_rects"));
for (int i = 0; i < blocks.size(); i++) { for (int i = 0; i < blocks.size(); i++) {
SceneBlock block = blocks.get(0); SceneBlock block = blocks.get(i);
block.id = blockIds.get(i); block.id = blockIds.get(i);
loadBlockFromScript(block); loadBlockFromScript(block);