quick fix 'not def and def.walkable'
parent
2958d96967
commit
e0734952ce
|
@ -753,7 +753,7 @@ local is_at_cliff_or_danger = function(self)
|
||||||
return true
|
return true
|
||||||
else
|
else
|
||||||
local def = minetest.registered_nodes[bnode.name]
|
local def = minetest.registered_nodes[bnode.name]
|
||||||
return (not def and def.walkable)
|
return not (def and def.walkable)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -789,7 +789,7 @@ local is_at_water_danger = function(self)
|
||||||
return true
|
return true
|
||||||
else
|
else
|
||||||
local def = minetest.registered_nodes[bnode.name]
|
local def = minetest.registered_nodes[bnode.name]
|
||||||
return (not def and def.walkable)
|
return not (def and def.walkable)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue