Update StarPlayer.cpp

[skip ci]
This commit is contained in:
Kae 2025-01-01 22:46:37 +11:00
parent 2ccc2ac487
commit aaa1587f0c

View File

@ -1086,7 +1086,7 @@ void Player::update(float dt, uint64_t) {
} }
if (calculateHeadRotation) { // master or not an OpenStarbound player if (calculateHeadRotation) { // master or not an OpenStarbound player
float headRotation = 0.f; 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 primary = m_tools->primaryHandItem();
auto alt = m_tools->altHandItem(); auto alt = m_tools->altHandItem();
String const disableFlag = "disableHeadRotation"; String const disableFlag = "disableHeadRotation";