This commit is contained in:
ElCeejo 2021-10-04 16:11:04 -07:00 committed by GitHub
parent d8273a04bd
commit 88063a254d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -914,7 +914,8 @@ function animalia.hq_wander_ranged(self, prty)
pos.z + random(-1, 1)
)
local node = minetest.get_node(random_goal)
if node.name
if node
and node.name
and (minetest.registered_nodes[node.name].drawtype == "liquid"
or minetest.registered_nodes[node.name].walkable) then
random_goal = nil