forked from mrkubax10/industrialtest
Partial fix for not working formspecs in MCL
This commit is contained in:
@@ -19,16 +19,15 @@ local S=minetest.get_translator("industrialtest")
|
||||
-- Generators
|
||||
local function generatorFormspec(fuelPercent)
|
||||
local formspec={
|
||||
"formspec_version[4]",
|
||||
industrialtest.formspecVersion(),
|
||||
"size[10.8,12]",
|
||||
"label[0.5,0.5;"..S("Generator").."]",
|
||||
"list[context;charged;4.9,1.8;1,1]",
|
||||
industrialtest.formspecList("context","charged",4.9,1.8,1,1),
|
||||
"listring[context;charged]",
|
||||
"image[4.9,2.8;1,1;default_furnace_fire_bg.png^[lowpart:"..fuelPercent..":default_furnace_fire_fg.png]",
|
||||
"list[context;fuel;4.9,3.9;1,1]",
|
||||
industrialtest.formspecList("context","fuel",4.9,3.9,1,1),
|
||||
"listring[context;fuel]",
|
||||
"list[current_player;main;0.5,6.25;8,1;]",
|
||||
"list[current_player;main;0.5,7.5;8,3;8]"
|
||||
industrialtest.formspecPlayerInv()
|
||||
}
|
||||
return table.concat(formspec,"")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user