mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-11-03 22:21:59 +00:00 
			
		
		
		
	Merge branch 'main' into components-wheeeee
This commit is contained in:
		@@ -1244,9 +1244,7 @@ bool Entity::IsSleeping() const {
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
const NiPoint3& Entity::GetPosition() const {
 | 
			
		||||
	if (!this) return NiPoint3::ZERO;
 | 
			
		||||
 | 
			
		||||
	auto controllable = GetComponent<ControllablePhysicsComponent>();
 | 
			
		||||
	auto* controllable = GetComponent<ControllablePhysicsComponent>();
 | 
			
		||||
 | 
			
		||||
	if (controllable != nullptr) {
 | 
			
		||||
		return controllable->GetPosition();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user