Use mcl_formspec.get_itemslot_bg_v4 instead of mcl_formspec.get_itemslot_bg
This commit is contained in:
@@ -58,8 +58,8 @@ function industrialtest.WindMill.getFormspec(self,pos)
|
||||
local meta=minetest.get_meta(pos)
|
||||
local charging=meta:get_int("charging")
|
||||
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>0 and "image[4.7,3;1,1;industrialtest_gui_wind_bg.png^[lowpart:"..charging..":industrialtest_gui_wind_fg.png]"
|
||||
or "image[4.7,3;1,1;industrialtest_gui_wind_bg.png]"),
|
||||
"listring[context;charged]"
|
||||
|
||||
Reference in New Issue
Block a user