mirror of
				https://github.com/luanti-org/minetest_game.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	sethome.get: Copy a return value
This commit is contained in:
		@@ -41,7 +41,12 @@ sethome.set = function(name, pos)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
sethome.get = function(name)
 | 
			
		||||
	return homepos[name]
 | 
			
		||||
	local pos = homepos[name]
 | 
			
		||||
	if pos then
 | 
			
		||||
	 	return vector.new(pos)
 | 
			
		||||
	else
 | 
			
		||||
	 	return nil
 | 
			
		||||
	end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
sethome.go = function(name)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user