mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-10-30 20:22:04 +00:00 
			
		
		
		
	Reverted change and simply lowered the spawn height to 8
This commit is contained in:
		| @@ -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>(); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 EmosewaMC
					EmosewaMC