mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-08-03 15:50:38 +02:00
nil check during mob detatch in mount.lua
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user