mirror of
				https://github.com/ElCeejo/animalia
				synced 2025-11-04 04:03:05 +01:00 
			
		
		
		
	Fix bug
This commit is contained in:
		
							parent
							
								
									50c56f9d79
								
							
						
					
					
						commit
						e3a610dd78
					
				@ -41,32 +41,6 @@ end
 | 
			
		||||
local yaw2dir = minetest.yaw_to_dir
 | 
			
		||||
local dir2yaw = minetest.dir_to_yaw
 | 
			
		||||
 | 
			
		||||
--------------
 | 
			
		||||
-- Settings --
 | 
			
		||||
--------------
 | 
			
		||||
 | 
			
		||||
------------
 | 
			
		||||
-- Tables --
 | 
			
		||||
------------
 | 
			
		||||
 | 
			
		||||
local is_solid = {}
 | 
			
		||||
 | 
			
		||||
minetest.register_on_mods_loaded(function()
 | 
			
		||||
	for name in pairs(minetest.registered_nodes) do
 | 
			
		||||
		if name ~= "air" and name ~= "ignore" then
 | 
			
		||||
			if minetest.registered_nodes[name].walkable
 | 
			
		||||
			or minetest.registered_nodes[name].drawtype == "liquid" then
 | 
			
		||||
				is_flyable[name] = true
 | 
			
		||||
				if minetest.registered_nodes[name].walkable then
 | 
			
		||||
					is_solid[name] = true
 | 
			
		||||
				else
 | 
			
		||||
					is_liquid[name] = true
 | 
			
		||||
				end
 | 
			
		||||
			end
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
end)
 | 
			
		||||
 | 
			
		||||
---------------------
 | 
			
		||||
-- Local Utilities --
 | 
			
		||||
---------------------
 | 
			
		||||
@ -1649,4 +1623,4 @@ creatura.register_utility("animalia:mount", function(self, player)
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
	self:set_utility(func)
 | 
			
		||||
end)
 | 
			
		||||
end)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user