From d883536ebd5b4d8582850e9b03fb475ac605ddc9 Mon Sep 17 00:00:00 2001 From: EmosewaMC <39972741+EmosewaMC@users.noreply.github.com> Date: Sat, 15 Jan 2022 19:12:07 -0800 Subject: [PATCH] Reverted change and simply lowered the spawn height to 8 --- dScripts/GfBanana.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/dScripts/GfBanana.cpp b/dScripts/GfBanana.cpp index 8a6777a1..65c434ba 100644 --- a/dScripts/GfBanana.cpp +++ b/dScripts/GfBanana.cpp @@ -65,12 +65,7 @@ void GfBanana::OnHit(Entity* self, Entity* attacker) return; } - // 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); + bananaEntity->SetPosition(bananaEntity->GetPosition() - NiPoint3::UNIT_Y * 8); auto* bananaDestroyable = bananaEntity->GetComponent();