mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-01-07 15:49:32 +01:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue