mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	ObjectRef:setpos() to move player properly (a bit shortcuttish implementation)
This commit is contained in:
		@@ -1747,6 +1747,10 @@ private:
 | 
			
		||||
		v3f pos = checkFloatPos(L, 2);
 | 
			
		||||
		// Do it
 | 
			
		||||
		co->setPos(pos);
 | 
			
		||||
		// Move player if applicable
 | 
			
		||||
		ServerRemotePlayer *player = getplayer(ref);
 | 
			
		||||
		if(player != NULL)
 | 
			
		||||
			get_server(L)->SendMovePlayer(player);
 | 
			
		||||
		return 0;
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user