A little bugfix
This commit is contained in:
parent
50a7d3ec58
commit
886176ef97
@ -39,7 +39,9 @@ local function force_detach(player)
|
||||
if attached_to and attached_to:get_luaentity() then
|
||||
local entity = attached_to:get_luaentity()
|
||||
if entity.driver then
|
||||
entity.driver = nil
|
||||
if entity ~= nil then
|
||||
entity.driver = nil
|
||||
end
|
||||
end
|
||||
player:set_detach()
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user