mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-28 05:03:03 +00:00
Mobs: Replace name-based fence/wall check
This commit is contained in:
parent
9326a76973
commit
f7fb83891a
1 changed files with 3 additions and 3 deletions
|
@ -912,9 +912,9 @@ local do_jump = function(self)
|
|||
if self.walk_chance == 0
|
||||
or minetest.registered_items[nod.name].walkable then
|
||||
|
||||
if not nod.name:find("fence")
|
||||
and not nod.name:find("fence_gate")
|
||||
and not nod.name:find("wall") then
|
||||
if minetest.get_item_group(nod.name, "fence") == 0
|
||||
and minetest.get_item_group(nod.name, "fence_gate") == 0
|
||||
and minetest.get_item_group(nod.name, "wall") == 0 then
|
||||
|
||||
local v = self.object:get_velocity()
|
||||
|
||||
|
|
Loading…
Reference in a new issue