summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-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