diff --git a/trade/trade.lua b/trade/trade.lua index 56b814f..6526b9b 100644 --- a/trade/trade.lua +++ b/trade/trade.lua @@ -173,7 +173,8 @@ function npc.trade.show_trade_offer_formspec(self, player, offer_type) prompt_string = " wants to sell to you" buy_sell_string = "Buy" end - + + if trade_offer.item ~= nil then local formspec = "size[8,4]".. default.gui_bg.. default.gui_bg_img.. @@ -192,6 +193,7 @@ function npc.trade.show_trade_offer_formspec(self, player, offer_type) } -- Show formspec to player minetest.show_formspec(player:get_player_name(), "advanced_npc:trade_offer", formspec) + end end