mirror of
https://github.com/ElCeejo/creatura.git
synced 2025-07-08 07:40:31 -04:00
Minor improvements and fixes to movement methods
This commit is contained in:
parent
c5af6c9590
commit
4516bac65f
5 changed files with 59 additions and 31 deletions
5
api.lua
5
api.lua
|
@ -92,11 +92,6 @@ local function is_under_solid(pos)
|
|||
return (walkable(pos2) or ((get_node_height(pos2) or 0) < 1.5))
|
||||
end
|
||||
|
||||
local function is_node_walkable(name)
|
||||
local def = minetest.registered_nodes[name]
|
||||
return def and def.walkable
|
||||
end
|
||||
|
||||
local function is_value_in_table(tbl, val)
|
||||
for _, v in pairs(tbl) do
|
||||
if v == val then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue