Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2025-01-01 22:46:37 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2025-01-01 22:46:37 +1100
commitaaa1587f0c27572a243c26e449e62a85668df330 (patch)
treefa2119c5a2ebeabdd5ffa9a8b169d56994fd990d
parent2ccc2ac48767059df021784cb17293b969e6290a (diff)
Update StarPlayer.cpp
[skip ci]
-rw-r--r--source/game/StarPlayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/game/StarPlayer.cpp b/source/game/StarPlayer.cpp
index 48368ec..c094bbb 100644
--- a/source/game/StarPlayer.cpp
+++ b/source/game/StarPlayer.cpp
@@ -1086,7 +1086,7 @@ void Player::update(float dt, uint64_t) {
}
if (calculateHeadRotation) { // master or not an OpenStarbound player
float headRotation = 0.f;
- if (m_humanoid->primaryHandHoldingItem() || m_humanoid->altHandHoldingItem()) {
+ if (m_humanoid->primaryHandHoldingItem() || m_humanoid->altHandHoldingItem() || m_humanoid->dance()) {
auto primary = m_tools->primaryHandItem();
auto alt = m_tools->altHandItem();
String const disableFlag = "disableHeadRotation";