Skip to content

Commit 6f19cac

Browse files
committed
Fix actors not being loaded if the scene doesn't contain any other entities
1 parent 0bc2797 commit 6f19cac

File tree

1 file changed

+1
-1
lines changed
  • chunky/src/java/se/llbit/chunky/renderer/scene

1 file changed

+1
-1
lines changed

chunky/src/java/se/llbit/chunky/renderer/scene/Scene.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2494,7 +2494,7 @@ public synchronized void importFromJson(JsonObject json) {
24942494
}
24952495
}
24962496

2497-
if (json.get("entities").isArray()) {
2497+
if (json.get("entities").isArray() || json.get("actors").isArray()) {
24982498
entities = new LinkedList<>();
24992499
actors = new LinkedList<>();
25002500
// Previously poseable entities were stored in the entities array

0 commit comments

Comments
 (0)