Minor cleaning
This commit is contained in:
parent
7e2256253d
commit
c87a179cb5
4
init.lua
4
init.lua
|
@ -2745,8 +2745,6 @@ if rawget(_G, "awards") then
|
||||||
local player = core.get_player_by_name(name)
|
local player = core.get_player_by_name(name)
|
||||||
set_fs(player)
|
set_fs(player)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
core.register_on_dieplayer(set_fs)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
core.register_on_chatcommand(function(name)
|
core.register_on_chatcommand(function(name)
|
||||||
|
@ -3022,11 +3020,13 @@ core.register_on_dieplayer(function(player)
|
||||||
local data = pdata[name]
|
local data = pdata[name]
|
||||||
if not data then return end
|
if not data then return end
|
||||||
|
|
||||||
|
if data.bag_size then
|
||||||
data.bag_size = nil
|
data.bag_size = nil
|
||||||
data.bag:set_list("main", {})
|
data.bag:set_list("main", {})
|
||||||
|
|
||||||
local inv = player:get_inventory()
|
local inv = player:get_inventory()
|
||||||
inv:set_size("main", INV_SIZE)
|
inv:set_size("main", INV_SIZE)
|
||||||
|
end
|
||||||
|
|
||||||
set_fs(player)
|
set_fs(player)
|
||||||
end)
|
end)
|
||||||
|
|
Ŝarĝante…
Reference in New Issue