mirror of
https://github.com/ElCeejo/animalia.git
synced 2025-07-19 12:44:58 -04:00
Smarter mapgen spawning, crash fix, more settings
This commit is contained in:
parent
7e240b5bd8
commit
69e96a6b82
13 changed files with 318 additions and 246 deletions
|
@ -583,7 +583,7 @@ end
|
|||
local function is_under_solid(pos)
|
||||
local pos2 = vector.new(pos.x, pos.y + 1, pos.z)
|
||||
local def = minetest.registered_nodes[minetest.get_node(pos2).name]
|
||||
return (def.walkable or mobkit.get_node_height(pos2) < 1.5)
|
||||
return (def.walkable or ((mobkit.get_node_height(pos2) or 0) < 1.5))
|
||||
end
|
||||
|
||||
local function vec_center(vec)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue