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:
Mikita Wiśniewski 2024-12-07 14:58:17 +01:00 committed by the-real-herowl
parent 28e028aa65
commit e42a863d92

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