diff --git a/dScripts/GfBanana.cpp b/dScripts/GfBanana.cpp index 919e54b4..8a6777a1 100644 --- a/dScripts/GfBanana.cpp +++ b/dScripts/GfBanana.cpp @@ -64,8 +64,13 @@ void GfBanana::OnHit(Entity* self, Entity* attacker) return; } - - bananaEntity->SetPosition(bananaEntity->GetPosition() - NiPoint3::UNIT_Y * 5); + + // Get the banana cluster position + auto entityPosition = bananaEntity->GetPosition(); + // Lower by 10 units to prevent bananas from spawning on top of the tree + entityPosition.SetY(entityPosition.GetY() - 10); + // Set the position to the new position. + bananaEntity->SetPosition(entityPosition); auto* bananaDestroyable = bananaEntity->GetComponent();