Browse Source

nil check during mob detatch in mount.lua

master
tenplus1 1 month ago
parent
commit
804f8b9a0c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mount.lua

+ 1
- 1
mount.lua View File

@@ -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


Loading…
Cancel
Save