From 320ca97164d61aa9a21c935434a671a11bc5acb1 Mon Sep 17 00:00:00 2001 From: general Date: Sat, 30 Mar 2024 03:34:51 -0400 Subject: [PATCH] fix nil var stepheight * backported commit 7f1ad098704f757d873a01568267c94f587cd814 from https://codeberg.org/tenplus1/mobs_redo/commit/7f1ad098704f757d873a01568267c94f587cd814 --- api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.lua b/api.lua index 8f518c9..97b646a 100644 --- a/api.lua +++ b/api.lua @@ -3703,7 +3703,7 @@ function mobs:register_mob(name, def) minetest.register_entity(name, setmetatable({ - stepheight = def.stepheight, + stepheight = def.stepheight or 1.1, name = (name:find(":") and name or ":"..name), type = def.type, attack_type = def.attack_type,