forked from minetest-mods/mesecons
		
	Compare commits
	
		
			1 Commits
		
	
	
		
			6936c8c2e4
			...
			numzero-fi
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					7888566b2f | 
@@ -186,19 +186,11 @@ function mesecon.invertRule(r)
 | 
				
			|||||||
	return vector.multiply(r, -1)
 | 
						return vector.multiply(r, -1)
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function mesecon.tablecopy(table) -- deep table copy
 | 
					function mesecon.tablecopy(obj) -- deep copy
 | 
				
			||||||
	if type(table) ~= "table" then return table end -- no need to copy
 | 
						if type(obj) == "table" then
 | 
				
			||||||
	local newtable = {}
 | 
							return table.copy(obj)
 | 
				
			||||||
 | 
					 | 
				
			||||||
	for idx, item in pairs(table) do
 | 
					 | 
				
			||||||
		if type(item) == "table" then
 | 
					 | 
				
			||||||
			newtable[idx] = mesecon.tablecopy(item)
 | 
					 | 
				
			||||||
		else
 | 
					 | 
				
			||||||
			newtable[idx] = item
 | 
					 | 
				
			||||||
		end
 | 
					 | 
				
			||||||
	end
 | 
						end
 | 
				
			||||||
 | 
						return obj
 | 
				
			||||||
	return newtable
 | 
					 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function mesecon.cmpAny(t1, t2)
 | 
					function mesecon.cmpAny(t1, t2)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user