diff --git a/common/src/main/java/dev/engine_room/flywheel/vanilla/ShulkerBoxVisual.java b/common/src/main/java/dev/engine_room/flywheel/vanilla/ShulkerBoxVisual.java index 8f8953b60..699d96c9e 100644 --- a/common/src/main/java/dev/engine_room/flywheel/vanilla/ShulkerBoxVisual.java +++ b/common/src/main/java/dev/engine_room/flywheel/vanilla/ShulkerBoxVisual.java @@ -53,7 +53,7 @@ public ShulkerBoxVisual(VisualizationContext ctx, ShulkerBoxBlockEntity blockEnt lid = instances.childOrThrow("lid"); initialPose = createInitialPose(); - instances.updateInstancesStatic(initialPose); + applyTransform(partialTick); } private Matrix4f createInitialPose() { @@ -81,7 +81,11 @@ public void beginFrame(Context context) { return; } - float progress = blockEntity.getProgress(context.partialTick()); + applyTransform(context.partialTick()); + } + + private void applyTransform(float partialTicks) { + float progress = blockEntity.getProgress(partialTicks); if (progress == lastProgress) { return; }