From bf7ff7ab5f99568dfd8da0f0e366273bbf47efd3 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Fri, 30 Sep 2022 08:31:30 +0100 Subject: [PATCH] fix node position --- api.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/api.lua b/api.lua index 54cc962..fd30a25 100644 --- a/api.lua +++ b/api.lua @@ -27,7 +27,7 @@ local use_cmi = minetest.global_exists("cmi") mobs = { mod = "redo", - version = "20220929", + version = "20220930", intllib = S, invis = minetest.global_exists("invisibility") and invisibility or {} } @@ -1210,8 +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.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 blocked = minetest.registered_nodes[nodt.name].walkable -- are we facing a fence or wall