Merge pull request #383 from EmosewaMC/bananaFixes

Changed banana drop spawn Y height to prevent them from getting stuck on the trees
This commit is contained in:
Gie "Max" Vanommeslaeghe 2022-01-17 00:51:42 +01:00 committed by GitHub
commit 789c0890ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ void GfBanana::OnHit(Entity* self, Entity* attacker)
return;
}
bananaEntity->SetPosition(bananaEntity->GetPosition() - NiPoint3::UNIT_Y * 5);
bananaEntity->SetPosition(bananaEntity->GetPosition() - NiPoint3::UNIT_Y * 8);
auto* bananaDestroyable = bananaEntity->GetComponent<DestroyableComponent>();