From e42a863d92272c9a59eac109e48504d871622fc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikita=20Wi=C5=9Bniewski?= Date: Sat, 7 Dec 2024 14:58:17 +0100 Subject: [PATCH] Fix crash on mobs spawning in <5.9 (#4737) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patches a copypaste blunder made in https://git.minetest.land/VoxeLibre/VoxeLibre/commit/ef763e396cf029d096488b24ec44ff2ff4a26b5f. Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4737 Reviewed-by: kno10 Co-authored-by: Mikita Wiśniewski Co-committed-by: Mikita Wiśniewski --- mods/ENTITIES/mcl_mobs/spawning.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_mobs/spawning.lua b/mods/ENTITIES/mcl_mobs/spawning.lua index 9ecb89370..65b2c7639 100644 --- a/mods/ENTITIES/mcl_mobs/spawning.lua +++ b/mods/ENTITIES/mcl_mobs/spawning.lua @@ -710,7 +710,7 @@ function mcl_mobs.spawn(pos,id) rotation = { vec = vector.zero(), absolute = true } }) else -- minetest < 5.9 - self.object:set_bone_position(def.head_swivel, def.head_bone_position, vector.zero) + obj:set_bone_position(def.head_swivel, def.head_bone_position, vector.zero()) end end return obj