Partial fix for not working formspecs in MCL

This commit is contained in:
mrkubax10
2023-03-01 15:35:20 +02:00
parent 6c62b8d4a3
commit 71618b2f3f
2 changed files with 24 additions and 5 deletions

View File

@@ -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