nil check during mob detatch in mount.lua
This commit is contained in:
parent
edf0469009
commit
804f8b9a0c
@ -84,7 +84,7 @@ local function force_detach(player)
|
|||||||
|
|
||||||
local entity = attached_to:get_luaentity()
|
local entity = attached_to:get_luaentity()
|
||||||
|
|
||||||
if entity.driver
|
if entity and entity.driver
|
||||||
and entity.driver == player then
|
and entity.driver == player then
|
||||||
|
|
||||||
entity.driver = nil
|
entity.driver = nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user