Use mcl_formspec.get_itemslot_bg_v4 instead of mcl_formspec.get_itemslot_bg
This commit is contained in:
@@ -48,8 +48,8 @@ function industrialtest.SolarPanelBase.getFormspec(self,pos)
|
||||
local amount=minetest.get_natural_light(vector.offset(pos,0,1,0))/15.0
|
||||
local charging=amount>0.5
|
||||
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]",
|
||||
(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]"),
|
||||
"listring[context;charged]"
|
||||
|
||||
Reference in New Issue
Block a user