diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2016-06-27 22:34:56 +0200 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2016-06-27 22:34:56 +0200 |
commit | 500149029223aafb9250dda9c6132327e048789f (patch) | |
tree | d6da9babc204b7be241d00ced078eae7b91be225 | |
parent | 2b0c5f2a682c49d53c576f2534100efea279f8dd (diff) |
Fixed bug
-rw-r--r-- | init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -211,7 +211,7 @@ protector.can_dig = function(r, pos, digger, onlyowner, infolevel) local pos = minetest.find_nodes_in_area( {x = pos.x - r, y = pos.y - r, z = pos.z - r}, {x = pos.x + r, y = pos.y + r, z = pos.z + r}, - {"protector:protect", "protector:protect2"}) + {"protector:protect", "protector:protect2", "protector:protect_sell"}) local meta, owner, members @@ -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] 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 |