Use mcl_formspec.get_itemslot_bg_v4 instead of mcl_formspec.get_itemslot_bg
This commit is contained in:
@@ -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]"
|
||||
|
||||
Reference in New Issue
Block a user