Fix crash
This commit is contained in:
parent
9618ea64b7
commit
056d4a3dde
1
init.lua
1
init.lua
|
@ -2810,6 +2810,7 @@ end)
|
||||||
core.register_on_dieplayer(function(player)
|
core.register_on_dieplayer(function(player)
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
local data = pdata[name]
|
local data = pdata[name]
|
||||||
|
if not data then return end
|
||||||
|
|
||||||
data.bag_size = nil
|
data.bag_size = nil
|
||||||
data.bag:set_list("main", {})
|
data.bag:set_list("main", {})
|
||||||
|
|
Ŝarĝante…
Reference in New Issue