Merge pull request #6 from taikedz/dismounting
prevent crash on dismount
This commit is contained in:
commit
13140c4560
2
api.lua
2
api.lua
@ -242,7 +242,7 @@ function lib_mount.attach(entity, player, attach_at, eye_offset)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function lib_mount.detach(entity, player, offset)
|
function lib_mount.detach(entity, player, offset)
|
||||||
entity.driver = nil
|
if entity ~= nil then entity.driver = nil end
|
||||||
player:set_detach()
|
player:set_detach()
|
||||||
default.player_attached[player:get_player_name()] = false
|
default.player_attached[player:get_player_name()] = false
|
||||||
default.player_set_animation(player, "stand" , 30)
|
default.player_set_animation(player, "stand" , 30)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user