Skip to content

Commit

Permalink
Weeping shulkers
Browse files Browse the repository at this point in the history
- Properly fix shulker boxes appearing in the wrong location
  • Loading branch information
Jozufozu committed Nov 13, 2024
1 parent cfcb424 commit 46fb592
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public ShulkerBoxVisual(VisualizationContext ctx, ShulkerBoxBlockEntity blockEnt
lid = instances.childOrThrow("lid");

initialPose = createInitialPose();
instances.updateInstancesStatic(initialPose);
applyTransform(partialTick);
}

private Matrix4f createInitialPose() {
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 46fb592

Please sign in to comment.