mirror of
				https://github.com/minetest-mods/areas.git
				synced 2025-11-04 06:35:28 +01:00 
			
		
		
		
	Fix pos big (#1)
* fix pos being to big * improve * make the change instead in hud.lua
This commit is contained in:
		
							
								
								
									
										3
									
								
								hud.lua
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								hud.lua
									
									
									
									
									
								
							@@ -6,6 +6,9 @@ minetest.register_globalstep(function(dtime)
 | 
			
		||||
	for _, player in pairs(minetest.get_connected_players()) do
 | 
			
		||||
		local name = player:get_player_name()
 | 
			
		||||
		local pos = vector.round(player:getpos())
 | 
			
		||||
		pos = vector.apply(pos, function(p)
 | 
			
		||||
			return math.max(math.min(p, 2147483), -2147483)
 | 
			
		||||
		end)
 | 
			
		||||
		local areaStrings = {}
 | 
			
		||||
 | 
			
		||||
		for id, area in pairs(areas:getAreasAtPos(pos)) do
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user