mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-21 21:32:27 +01:00
Update chests formspec to not be deprecated
This commit is contained in:
parent
d452d16fa6
commit
4735055b94
@ -193,9 +193,9 @@ function technic.chests:definition(name, data)
|
|||||||
|
|
||||||
local locked_after_place = nil
|
local locked_after_place = nil
|
||||||
local front = {"technic_"..lname.."_chest_front.png"}
|
local front = {"technic_"..lname.."_chest_front.png"}
|
||||||
data.base_formspec = "invsize["..data.ovwidth..","..data.ovheight..";]"..
|
data.base_formspec = "size["..data.ovwidth..","..data.ovheight.."]"..
|
||||||
"label[0,0;"..S("%s Chest"):format(name).."]"..
|
"label[0,0;"..S("%s Chest"):format(name).."]"..
|
||||||
"list[current_name;main;"..data.hileft..",1;"..data.width..","..data.height..";]"..
|
"list[context;main;"..data.hileft..",1;"..data.width..","..data.height..";]"..
|
||||||
"list[current_player;main;"..data.loleft..","..data.lotop..";8,4;]"..
|
"list[current_player;main;"..data.loleft..","..data.lotop..";8,4;]"..
|
||||||
"background[-0.19,-0.25;"..(data.ovwidth+0.4)..","..(data.ovheight+0.75)..";technic_form_bg.png]"..
|
"background[-0.19,-0.25;"..(data.ovwidth+0.4)..","..(data.ovheight+0.75)..";technic_form_bg.png]"..
|
||||||
"background["..data.hileft..",1;"..data.width..","..data.height..";technic_"..lname.."_chest_inventory.png]"..
|
"background["..data.hileft..",1;"..data.width..","..data.height..";technic_"..lname.."_chest_inventory.png]"..
|
||||||
|
Loading…
Reference in New Issue
Block a user