forked from minetest-mods/global_exchange
do some fixes suggested by sofar
This commit is contained in:
parent
7fbd63a180
commit
ac6b6c13e5
3
atm.lua
3
atm.lua
@ -90,8 +90,7 @@ local function send_fs(p_name, receiver, amt_str)
|
|||||||
|
|
||||||
local amt = tonumber(amt_str)
|
local amt = tonumber(amt_str)
|
||||||
|
|
||||||
if not amt
|
if not amt or amt <= 0 then
|
||||||
or amt <= 0 then
|
|
||||||
return fs .. label(0.5,0.5, "Invalid transfer amount.") ..
|
return fs .. label(0.5,0.5, "Invalid transfer amount.") ..
|
||||||
"button[0.5,2;2,1;wire;Back]"
|
"button[0.5,2;2,1;wire;Back]"
|
||||||
end
|
end
|
||||||
|
@ -188,7 +188,7 @@ minetest.after(0, function()
|
|||||||
allow_take = function()
|
allow_take = function()
|
||||||
return 0
|
return 0
|
||||||
end,
|
end,
|
||||||
on_move = function(inv, _,_,_,_,_, player)
|
on_move = function(inv, _, _, _, _, _, player)
|
||||||
local p_name = player:get_player_name()
|
local p_name = player:get_player_name()
|
||||||
local p_list = "p_" .. p_name
|
local p_list = "p_" .. p_name
|
||||||
|
|
||||||
@ -539,7 +539,7 @@ minetest.register_node("global_exchange:exchange", {
|
|||||||
"global_exchange_exchange_side.png",
|
"global_exchange_exchange_side.png",
|
||||||
},
|
},
|
||||||
groups = {cracky=2},
|
groups = {cracky=2},
|
||||||
on_rightclick = function(_,_, clicker)
|
on_rightclick = function(_, _, clicker)
|
||||||
local p_name = clicker:get_player_name()
|
local p_name = clicker:get_player_name()
|
||||||
local state = main_state[p_name]
|
local state = main_state[p_name]
|
||||||
if state then
|
if state then
|
||||||
|
Loading…
Reference in New Issue
Block a user