Smarter mapgen spawning, crash fix, more settings

This commit is contained in:
ElCeejo 2021-08-20 20:16:29 -07:00 committed by GitHub
parent 7e240b5bd8
commit 69e96a6b82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 318 additions and 246 deletions

View file

@ -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)