do some fixes suggested by sofar

This commit is contained in:
HybridDog 2016-03-06 12:21:27 +01:00
parent 7fbd63a180
commit ac6b6c13e5
2 changed files with 3 additions and 4 deletions

View File

@ -90,8 +90,7 @@ local function send_fs(p_name, receiver, amt_str)
local amt = tonumber(amt_str)
if not amt
or amt <= 0 then
if not amt or amt <= 0 then
return fs .. label(0.5,0.5, "Invalid transfer amount.") ..
"button[0.5,2;2,1;wire;Back]"
end

View File

@ -188,7 +188,7 @@ minetest.after(0, function()
allow_take = function()
return 0
end,
on_move = function(inv, _,_,_,_,_, player)
on_move = function(inv, _, _, _, _, _, player)
local p_name = player:get_player_name()
local p_list = "p_" .. p_name
@ -539,7 +539,7 @@ minetest.register_node("global_exchange:exchange", {
"global_exchange_exchange_side.png",
},
groups = {cracky=2},
on_rightclick = function(_,_, clicker)
on_rightclick = function(_, _, clicker)
local p_name = clicker:get_player_name()
local state = main_state[p_name]
if state then