From b04cae0161b1ce889fc496ab23dfbddae4e79283 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Tue, 9 Oct 2012 05:26:48 -0400 Subject: [PATCH] testing... --- door_wood_plain.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/door_wood_plain.lua b/door_wood_plain.lua index 5b38280..ffff53c 100644 --- a/door_wood_plain.lua +++ b/door_wood_plain.lua @@ -73,7 +73,7 @@ minetest.register_node("homedecor:door_wood_plain_bottom_left", { local pos = pointed_thing.above local pd = true if type(IsPlayerNodeOwner)=="function" then - if not IsPlayerNodeOwner(pos, placer:get_player_name()) then + if not IsPlayerNodeOwner(pos, placer:get_player_name()) and getLastOwner(pos) ~= "< Unknown >" then minetest.chat_send_player( placer:get_player_name(), "Sorry, "..getLastOwner(pos).." owns that spot." ) pd = false end @@ -174,8 +174,8 @@ minetest.register_node("homedecor:door_wood_plain_bottom_right", { on_place = function(itemstack, placer, pointed_thing) local pos = pointed_thing.above local pd = true - if type(IsPlayerNodeOwner)=="function" then - if not IsPlayerNodeOwner(pos, placer:get_player_name()) then + if type(IsPlayerNodeOwner)=="function" then + if not IsPlayerNodeOwner(pos, placer:get_player_name()) and getLastOwner(pos) ~= "< Unknown >" then minetest.chat_send_player( placer:get_player_name(), "Sorry, "..getLastOwner(pos).." owns that spot." ) pd = false end