mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-24 20:07:54 +01:00
Weeping shulkers
- Properly fix shulker boxes appearing in the wrong location
This commit is contained in:
parent
cfcb4246af
commit
46fb59289f
1 changed files with 6 additions and 2 deletions
|
@ -53,7 +53,7 @@ public class ShulkerBoxVisual extends AbstractBlockEntityVisual<ShulkerBoxBlockE
|
|||
lid = instances.childOrThrow("lid");
|
||||
|
||||
initialPose = createInitialPose();
|
||||
instances.updateInstancesStatic(initialPose);
|
||||
applyTransform(partialTick);
|
||||
}
|
||||
|
||||
private Matrix4f createInitialPose() {
|
||||
|
@ -81,7 +81,11 @@ public class ShulkerBoxVisual extends AbstractBlockEntityVisual<ShulkerBoxBlockE
|
|||
return;
|
||||
}
|
||||
|
||||
float progress = blockEntity.getProgress(context.partialTick());
|
||||
applyTransform(context.partialTick());
|
||||
}
|
||||
|
||||
private void applyTransform(float partialTicks) {
|
||||
float progress = blockEntity.getProgress(partialTicks);
|
||||
if (progress == lastProgress) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue