Fix IllegalStateException when execute toMap (#1879)

This commit is contained in:
iTruth
2022-10-21 19:19:48 +08:00
committed by GitHub
parent be8fbcbc02
commit c331a7f288
4 changed files with 11 additions and 8 deletions

View File

@@ -60,7 +60,7 @@ public class SceneMeta {
}
this.blocks = blocks.stream().collect(Collectors.toMap(b -> b.id, b -> b));
this.blocks = blocks.stream().collect(Collectors.toMap(b -> b.id, b -> b, (a, b) -> a));
this.sceneBlockIndex = SceneIndexManager.buildIndex(2, blocks, SceneBlock::toRectangle);
} catch (ScriptException exception) {