mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-25 10:10:21 +01:00
revert node position (git gui test)
This commit is contained in:
parent
bf7ff7ab5f
commit
561903d075
2
api.lua
2
api.lua
@ -1210,7 +1210,7 @@ function mob_class:do_jump()
|
||||
|
||||
-- what is in front of mob and above?
|
||||
local nod = node_ok({x = pos.x + dir_x, y = pos.y + 0.5, z = pos.z + dir_z})
|
||||
local nodt = node_ok({x = pos.x + dir_x, y = pos.y + 1, z = pos.z + dir_z})
|
||||
local nodt = node_ok({x = pos.x + dir_x, y = pos.y + 1.5, z = pos.z + dir_z})
|
||||
local blocked = minetest.registered_nodes[nodt.name].walkable
|
||||
|
||||
-- are we facing a fence or wall
|
||||
|
Loading…
Reference in New Issue
Block a user