mirror of
https://github.com/ElCeejo/animalia.git
synced 2025-03-15 04:11:25 +00:00
Fix bug
This commit is contained in:
parent
50c56f9d79
commit
e3a610dd78
1 changed files with 1 additions and 27 deletions
|
@ -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…
Add table
Reference in a new issue