From a3f6d5feca70bb69491f0794149deebd4bc8f8fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20P=C3=A9rez-Cerezo?= Date: Tue, 28 Jun 2016 13:26:22 +0200 Subject: fixed unlimited spending bug --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index d4fe534..5fc33f4 100644 --- a/init.lua +++ b/init.lua @@ -639,7 +639,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) if fields.cancel then return end - if price > atm.balance[name] and not name == oldowner then + if (price > atm.balance[name]) and not (name == oldowner) then minetest.chat_send_player(name, "Not enough money on your account. Please recharge on the atm") return else -- cgit v1.2.3