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:
parent
cc82293c74
commit
2df6f7d5d4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user