Fix jockey spawn room check (#4812)

Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4812
Reviewed-by: kno10 <kno10@noreply.git.minetest.land>
Co-authored-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-committed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
This commit is contained in:
Mikita Wiśniewski 2025-01-05 02:23:48 +01:00 committed by the-real-herowl
parent cc82293c74
commit 2df6f7d5d4

View file

@ -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