summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2016-06-28 13:26:22 +0200
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2016-06-28 13:26:22 +0200
commita3f6d5feca70bb69491f0794149deebd4bc8f8fa (patch)
tree2c6bf58c2cc8deca407082473366b9fd0eaacc48
parent500149029223aafb9250dda9c6132327e048789f (diff)
fixed unlimited spending bug
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
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