diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2016-06-28 13:26:22 +0200 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2016-06-28 13:26:22 +0200 |
commit | a3f6d5feca70bb69491f0794149deebd4bc8f8fa (patch) | |
tree | 2c6bf58c2cc8deca407082473366b9fd0eaacc48 | |
parent | 500149029223aafb9250dda9c6132327e048789f (diff) |
fixed unlimited spending bug
-rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |