mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-01 23:11:11 +01:00
Fix previous creative inventory button not working after death
This commit is contained in:
parent
28fe2ae184
commit
620d8a7804
1 changed files with 7 additions and 1 deletions
|
@ -218,8 +218,14 @@ mcl_inventory.set_creative_formspec = function(player, start_i, pagenum, inv_siz
|
||||||
"listring[current_player;main]"..
|
"listring[current_player;main]"..
|
||||||
"listring[detached:trash;main]"
|
"listring[detached:trash;main]"
|
||||||
|
|
||||||
if page ~= nil then name = page end
|
if page ~= nil then
|
||||||
|
name = page
|
||||||
|
if players[playername] then
|
||||||
|
players[playername].page = page
|
||||||
|
end
|
||||||
|
end
|
||||||
bg[name] = "crafting_creative_bg.png"
|
bg[name] = "crafting_creative_bg.png"
|
||||||
|
|
||||||
local inv_bg = "crafting_inventory_creative.png"
|
local inv_bg = "crafting_inventory_creative.png"
|
||||||
if name == "inv" then
|
if name == "inv" then
|
||||||
inv_bg = "crafting_inventory_creative_survival.png"
|
inv_bg = "crafting_inventory_creative_survival.png"
|
||||||
|
|
Loading…
Reference in a new issue