mirror of
				https://github.com/HybridDog/riesenpilz.git
				synced 2025-10-31 13:55:26 +01:00 
			
		
		
		
	Add a warning about string nodenames abm values, they should not occur
This commit is contained in:
		
							
								
								
									
										5
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								init.lua
									
									
									
									
									
								
							| @@ -1122,6 +1122,11 @@ local function get_grow(name) | ||||
| 	local is = {} | ||||
| 	for i = 1,#minetest.registered_abms do | ||||
| 		local ad = minetest.registered_abms[i] | ||||
| 		if type(ad.nodenames) ~= "table" then | ||||
| 			minetest.log("warning", "ABM nodenames is not a table: " .. | ||||
| 				dump(ad)) | ||||
| 			return | ||||
| 		end | ||||
| 		if ad.chance > 1 | ||||
| 		and table.indexof(ad.nodenames, name) ~= -1 then | ||||
| 			is[#is+1] = ad.action | ||||
|   | ||||
		Reference in New Issue
	
	Block a user