nil check during mob detatch in mount.lua

This commit is contained in:
tenplus1 2020-07-03 15:46:50 +01:00
父節點 edf0469009
當前提交 804f8b9a0c
共有 1 個檔案被更改,包括 1 行新增1 行删除

查看文件

@ -84,7 +84,7 @@ local function force_detach(player)
local entity = attached_to:get_luaentity()
if entity.driver
if entity and entity.driver
and entity.driver == player then
entity.driver = nil