Commit 13140c45 authored by D00Med's avatar D00Med Committed by GitHub

Merge pull request #6 from taikedz/dismounting

prevent crash on dismount
parents 1c994617 8a3d23df
......@@ -242,7 +242,7 @@ function lib_mount.attach(entity, player, attach_at, eye_offset)
function lib_mount.detach(entity, player, offset)
entity.driver = nil
if entity ~= nil then entity.driver = nil end
default.player_attached[player:get_player_name()] = false
default.player_set_animation(player, "stand" , 30)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment