Fix listrings in machine formspecs to make it possible to move items with shift

Fixes #12
This commit is contained in:
2024-05-11 12:53:18 +02:00
parent 961e08647f
commit 36c5b3c8ac
13 changed files with 37 additions and 49 deletions

View File

@@ -23,9 +23,9 @@ solarPanel.getFormspec=function(pos)
local formspec={
"list[context;charged;4.7,1.8;1,1]",
industrialtest.internal.getItemSlotBg(4.7,1.8,1,1),
"listring[context;charged]",
(charging and "image[4.7,2.8;1,1;industrialtest_gui_sun_fg.png]"
or "image[4.7,2.8;1,1;industrialtest_gui_sun_bg.png]")
or "image[4.7,2.8;1,1;industrialtest_gui_sun_bg.png]"),
"listring[context;charged]"
}
return table.concat(formspec,"")
end