From bbcdc4b67d0e431d6045614d53adb85266973456 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Thu, 19 Jan 2023 17:46:07 +0000 Subject: [PATCH] fix variable error (thx Niklp) --- api.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api.lua b/api.lua index 63fda51..df9e062 100644 --- a/api.lua +++ b/api.lua @@ -25,7 +25,7 @@ local use_cmi = minetest.global_exists("cmi") mobs = { mod = "redo", - version = "20221222", + version = "20230119", intllib = S, invis = minetest.global_exists("invisibility") and invisibility or {} } @@ -2997,7 +2997,8 @@ function mob_class:on_punch(hitter, tflp, tool_capabilities, dir, damage) and self.order ~= "stand" then local lp = hitter:get_pos() - yaw = yaw_to_pos(self, lp, 3) + + yaw_to_pos(self, lp, 3) self.state = "runaway" self.runaway_timer = 0