aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/BookModel.cpp
diff options
context:
space:
mode:
authorLoki Rautio <lokirautio@gmail.com>2026-03-04 03:56:03 -0600
committerLoki Rautio <lokirautio@gmail.com>2026-03-04 03:56:03 -0600
commit42aec6dac53dffa6afe072560a7e1d4986112538 (patch)
tree0836426857391df1b6a83f6368a183f83ec9b104 /Minecraft.Client/BookModel.cpp
parentc9d58eeac7c72f0b3038e084667b4d89a6249fce (diff)
parentef9b6fd500dfabd9463267b0dd9e29577eea8a2b (diff)
Merge branch 'main' into pr/win64-world-saves
# Conflicts: # Minecraft.Client/MinecraftServer.cpp # README.md
Diffstat (limited to 'Minecraft.Client/BookModel.cpp')
-rw-r--r--Minecraft.Client/BookModel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Minecraft.Client/BookModel.cpp b/Minecraft.Client/BookModel.cpp
index bc4769bd..d032a7f5 100644
--- a/Minecraft.Client/BookModel.cpp
+++ b/Minecraft.Client/BookModel.cpp
@@ -35,7 +35,7 @@ BookModel::BookModel()
void BookModel::render(shared_ptr<Entity> entity, float time, float r, float bob, float yRot, float xRot, float scale, bool usecompiled)
{
- setupAnim(time, r, bob, yRot, xRot, scale);
+ setupAnim(time, r, bob, yRot, xRot, scale, entity);
leftLid->render(scale,usecompiled);
rightLid->render(scale,usecompiled);
@@ -48,7 +48,7 @@ void BookModel::render(shared_ptr<Entity> entity, float time, float r, float bob
flipPage2->render(scale,usecompiled);
}
-void BookModel::setupAnim(float time, float r, float bob, float yRot, float xRot, float scale, unsigned int uiBitmaskOverrideAnim)
+void BookModel::setupAnim(float time, float r, float bob, float yRot, float xRot, float scale, shared_ptr<Entity> entity, unsigned int uiBitmaskOverrideAnim)
{
float openness = (Mth::sin(time * 0.02f) * 0.10f + 1.25f) * yRot;