Skip to content

Commit 9f1d2b3

Browse files
committed
fix: animate Ponder sections using returned links
1 parent cc119da commit 9f1d2b3

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

‎src/main/java/com/innygr/icreateordernetworking/ponder/ModPonderScenes.java‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,14 @@ public static void orbitalMissile(SceneBuilder builder, SceneBuildingUtil util)
151151
scene.world().setBlock(util.grid().at(2, 3, 2), Blocks.ANVIL.defaultBlockState(), false);
152152
reveal(scene, util, 1, 1, 2, 1, Direction.DOWN);
153153
explain(scene, util, "The planned assembly is inverted, with its anchor at Y=250 or higher.", 1, 1, 2);
154-
reveal(scene, util, 3, 1, 2, 2, Direction.DOWN);
155-
scene.world().moveSection(util.select().position(3, 1, 2), util.vector().of(-1, 1, 0), 12);
154+
var engineSection = scene.world().showSection(util.select().position(3, 1, 2), Direction.DOWN);
155+
scene.idle(8);
156+
scene.world().moveSection(engineSection, util.vector().of(-1, 1, 0), 12);
156157
scene.idle(14);
157158
explain(scene, util, "The engine component slides into the central assembly position.", 2, 2, 2);
158-
reveal(scene, util, 2, 3, 2, 3, Direction.DOWN);
159-
scene.world().moveSection(util.select().position(2, 3, 2), util.vector().of(0, -1, 0), 12);
159+
var finalSection = scene.world().showSection(util.select().position(2, 3, 2), Direction.DOWN);
160+
scene.idle(8);
161+
scene.world().moveSection(finalSection, util.vector().of(0, -1, 0), 12);
160162
scene.idle(14);
161163
explain(scene, util, "The final component settles into place. This is a visual assembly animation; live launch, descent physics, and impact integration remain future work.", 2, 2, 2);
162164
scene.markAsFinished();
@@ -165,9 +167,9 @@ public static void orbitalMissile(SceneBuilder builder, SceneBuildingUtil util)
165167
/** A moving marker gives every logistics tutorial a visible, timed movement beat. */
166168
private static void animateCourier(CreateSceneBuilder scene, SceneBuildingUtil util) {
167169
scene.world().setBlock(util.grid().at(0, 2, 0), Blocks.REDSTONE_BLOCK.defaultBlockState(), false);
168-
scene.world().showSection(util.select().position(0, 2, 0), Direction.DOWN);
170+
var courierSection = scene.world().showSection(util.select().position(0, 2, 0), Direction.DOWN);
169171
scene.idle(4);
170-
scene.world().moveSection(util.select().position(0, 2, 0), util.vector().of(4, 0, 0), 28);
172+
scene.world().moveSection(courierSection, util.vector().of(4, 0, 0), 28);
171173
scene.idle(30);
172174
}
173175

0 commit comments

Comments
 (0)