mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-13 19:58:21 +00:00
Reverted change and simply lowered the spawn height to 8
This commit is contained in:
parent
fa714aa843
commit
d883536ebd
@ -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<DestroyableComponent>();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user