mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 00:19:32 +01:00
Fix crash on mobs spawning in <5.9 (#4737)
This patches a copypaste blunder made in ef763e396c
.
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4737
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
28e028aa65
commit
e42a863d92
1 changed files with 1 additions and 1 deletions
|
@ -710,7 +710,7 @@ function mcl_mobs.spawn(pos,id)
|
||||||
rotation = { vec = vector.zero(), absolute = true }
|
rotation = { vec = vector.zero(), absolute = true }
|
||||||
})
|
})
|
||||||
else -- minetest < 5.9
|
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
|
||||||
end
|
end
|
||||||
return obj
|
return obj
|
||||||
|
|
Loading…
Reference in a new issue