mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-25 02:42:25 +01:00
Mobs: Replace name-based fence/wall check
This commit is contained in:
parent
9326a76973
commit
f7fb83891a
@ -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 New Issue
Block a user