1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2024-12-26 02:30:21 +01:00

revert node position (git gui test)

This commit is contained in:
tenplus1 2022-09-30 08:32:50 +01:00
parent bf7ff7ab5f
commit 561903d075

View File

@ -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