Fix: crash on player die

master
Coder12a 2020-11-02 17:15:00 -06:00
parent e93d044d17
commit 46184aedc8
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ minetest.register_on_leaveplayer(function(player)
local entity = pdata.entity
if entity then
entity:remove()
entity.object:remove()
end
player_data[name] = nil
@ -58,7 +58,7 @@ minetest.register_on_dieplayer(function(player)
local entity = pdata.entity
if entity then
entity:remove()
entity.object:remove()
end
player_data[name] = nil