fix exploits
This commit is contained in:
parent
4b4f545433
commit
55e77f35e8
@ -24,7 +24,7 @@ minetest.register_node("landrush:sale_block",{
|
||||
-- do the sale -- maybe a are you sure formspec?
|
||||
local name = puncher:get_player_name()
|
||||
local owner = landrush.get_owner(pos)
|
||||
if ( name ~= owner ) then
|
||||
if ( name ~= owner and owner ~= nil ) then
|
||||
local meta = minetest.get_meta(pos)
|
||||
local price = meta:get_int("price")
|
||||
if ( money.get(name) >= price ) then
|
||||
|
Loading…
x
Reference in New Issue
Block a user