Use mcl_formspec.get_itemslot_bg_v4 instead of mcl_formspec.get_itemslot_bg

This commit is contained in:
2025-12-07 18:19:19 +01:00
parent 42378a4331
commit 29b5a6c996
18 changed files with 54 additions and 52 deletions

View File

@@ -86,10 +86,10 @@ function industrialtest.Reactor.getFormspec(self,pos)
local size=math.floor(meta:get_int("size")/3)
local switchText=(meta:get_int("enabled")==0 and S("Start") or S("Stop"))
local formspec={
"list[context;fuel;1,1;"..size..","..size.."]",
industrialtest.internal.getItemSlotBg(1,1,size,size),
"list[context;charged;7,2.8;1,1]",
"list[context;fuel;1,1;"..size..","..size.."]",
industrialtest.internal.getItemSlotBg(7.7,2.8,1,1),
"list[context;charged;7,2.8;1,1]",
"button[7.7,1;1,0.8;toggle;"..minetest.formspec_escape(switchText).."]",
self.createPowerIndicatorWidget(charged,9,1),
"listring[context;fuel]"