mirror of
https://github.com/minetest-mods/i3.git
synced 2025-01-14 20:20:27 +01:00
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", {})
|
||||||
|
Loading…
Reference in New Issue
Block a user