fixed bug in trade_simple
This commit is contained in:
parent
87a2ea1f2d
commit
5bd0bf23f3
@ -203,7 +203,7 @@ yl_speak_up.get_fs_add_trade_simple = function(player, trade_id)
|
|||||||
|
|
||||||
-- is this player allowed to edit the NPC and his trades? If not abort.
|
-- is this player allowed to edit the NPC and his trades? If not abort.
|
||||||
if(not(yl_speak_up.may_edit_npc(player, n_id)) or not(dialog) or not(dialog.n_npc)) then
|
if(not(yl_speak_up.may_edit_npc(player, n_id)) or not(dialog) or not(dialog.n_npc)) then
|
||||||
return formspec..
|
return "size[9,2]"..
|
||||||
"label[2.0,1.8;Ups! Something went wrong.]"..
|
"label[2.0,1.8;Ups! Something went wrong.]"..
|
||||||
"button[6.2,1.6;2.0,0.9;abort_trade_simple;Back]"
|
"button[6.2,1.6;2.0,0.9;abort_trade_simple;Back]"
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user