Use mcl_formspec.get_itemslot_bg_v4 instead of mcl_formspec.get_itemslot_bg
This commit is contained in:
@@ -72,12 +72,12 @@ function industrialtest.Generator.getFormspec(self,pos)
|
||||
local fuelPercent=meta:get_float("fuelTime")/meta:get_float("maxFuelTime")*100
|
||||
local charged=meta:get_int("industrialtest.powerAmount")/meta:get_int("industrialtest.powerCapacity")
|
||||
local formspec={
|
||||
"list[context;charged;4.7,1.8;1,1]",
|
||||
industrialtest.internal.getItemSlotBg(4.7,1.8,1,1),
|
||||
"list[context;charged;4.7,1.8;1,1]",
|
||||
(fuelPercent>0 and "image[4.7,2.8;1,1;default_furnace_fire_bg.png^[lowpart:"..fuelPercent..":default_furnace_fire_fg.png]"
|
||||
or "image[4.7,2.8;1,1;default_furnace_fire_bg.png]"),
|
||||
"list[context;src;4.7,3.9;1,1]",
|
||||
industrialtest.internal.getItemSlotBg(4.7,3.9,1,1),
|
||||
"list[context;src;4.7,3.9;1,1]",
|
||||
self.createPowerIndicatorWidget(charged,9,1),
|
||||
"listring[context;src]"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user