Don't use legacy default GUI bg if not existing
parent
9aca0379b7
commit
7376a9ece6
11
easyvend.lua
11
easyvend.lua
|
@ -134,13 +134,14 @@ easyvend.set_formspec = function(pos, player)
|
||||||
local number = meta:get_int("number")
|
local number = meta:get_int("number")
|
||||||
local cost = meta:get_int("cost")
|
local cost = meta:get_int("cost")
|
||||||
local itemname = meta:get_string("itemname")
|
local itemname = meta:get_string("itemname")
|
||||||
local bg = ""
|
local bg = ""
|
||||||
local configmode = meta:get_int("configmode") == 1
|
local configmode = meta:get_int("configmode") == 1
|
||||||
if minetest.get_modpath("default") then
|
-- Support legacy background from default mod (MT<=0.4.17)
|
||||||
bg = default.gui_bg .. default.gui_bg_img .. default.gui_slots
|
if minetest.get_modpath("default") and default.gui_bg then
|
||||||
end
|
bg = default.gui_bg .. default.gui_bg_img .. default.gui_slots
|
||||||
|
end
|
||||||
|
|
||||||
local numbertext, costtext, buysellbuttontext
|
local numbertext, costtext, buysellbuttontext
|
||||||
local itemcounttooltip = "Item count (append “s” to multiply with maximum stack size)"
|
local itemcounttooltip = "Item count (append “s” to multiply with maximum stack size)"
|
||||||
local buysell = easyvend.buysell(node.name)
|
local buysell = easyvend.buysell(node.name)
|
||||||
if buysell == "sell" then
|
if buysell == "sell" then
|
||||||
|
|
Loading…
Reference in New Issue