mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-01-11 18:30:21 +01:00
player nil check for mob attach
This commit is contained in:
parent
8201c165e7
commit
747af786a8
@ -186,6 +186,8 @@ end
|
||||
|
||||
function mobs.attach(entity, player)
|
||||
|
||||
if not player then return end
|
||||
|
||||
entity.player_rotation = entity.player_rotation or {x = 0, y = 0, z = 0}
|
||||
entity.driver_attach_at = entity.driver_attach_at or {x = 0, y = 0, z = 0}
|
||||
entity.driver_eye_offset = entity.driver_eye_offset or {x = 0, y = 0, z = 0}
|
||||
|
Loading…
Reference in New Issue
Block a user