forked from mtcontrib/signs_lib
		
	Compare commits
	
		
			1 Commits
		
	
	
		
			c08eb3452f
			...
			tmp
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					c655902676 | 
							
								
								
									
										9
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								init.lua
									
									
									
									
									
								
							@@ -498,21 +498,12 @@ signs_lib.update_sign = function(pos, fields, owner)
 | 
			
		||||
	local text = meta:get_string("text")
 | 
			
		||||
	if text == nil then return end
 | 
			
		||||
	local objects = minetest.get_objects_inside_radius(pos, 0.5)
 | 
			
		||||
	local found
 | 
			
		||||
	for _, v in ipairs(objects) do
 | 
			
		||||
		local e = v:get_luaentity()
 | 
			
		||||
		if e and e.name == "signs:text" then
 | 
			
		||||
			if found then
 | 
			
		||||
			v:remove()
 | 
			
		||||
			else
 | 
			
		||||
				set_obj_text(v, text, new, pos)
 | 
			
		||||
				found = true
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
	end
 | 
			
		||||
	if found then
 | 
			
		||||
		return
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
	-- if there is no entity
 | 
			
		||||
	local sign_info
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user