From 2df6f7d5d42e4814920f6c12d3fbc1d6d250e892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikita=20Wi=C5=9Bniewski?= Date: Sun, 5 Jan 2025 02:23:48 +0100 Subject: [PATCH] Fix jockey spawn room check (#4812) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4812 Reviewed-by: kno10 Co-authored-by: Mikita Wiśniewski Co-committed-by: Mikita Wiśniewski --- mods/ENTITIES/mcl_mobs/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index a28480e43..ebe1f2c16 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -56,7 +56,7 @@ function mob_class:jock_to(mob, reletive_pos, rot) if not pos then return end self.jockey = mob - local jock = minetest.add_entity(pos, mob) + local jock = mcl_mobs.spawn(pos, mob) if not jock then return end jock:get_luaentity().docile_by_day = false jock:get_luaentity().riden_by_jock = true