1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 08:20:21 +01:00

testing almost done

This commit is contained in:
Vanessa Ezekowitz 2012-10-09 05:36:25 -04:00
parent b04cae0161
commit ec21a17e7d

View File

@ -73,7 +73,7 @@ minetest.register_node("homedecor:door_wood_plain_bottom_left", {
local pos = pointed_thing.above local pos = pointed_thing.above
local pd = true local pd = true
if type(IsPlayerNodeOwner)=="function" then if type(IsPlayerNodeOwner)=="function" then
if not IsPlayerNodeOwner(pos, placer:get_player_name()) and getLastOwner(pos) ~= "< Unknown >" then if not IsPlayerNodeOwner(pos, placer:get_player_name()) and HasOwner(pos) then
minetest.chat_send_player( placer:get_player_name(), "Sorry, "..getLastOwner(pos).." owns that spot." ) minetest.chat_send_player( placer:get_player_name(), "Sorry, "..getLastOwner(pos).." owns that spot." )
pd = false pd = false
end end
@ -175,7 +175,7 @@ minetest.register_node("homedecor:door_wood_plain_bottom_right", {
local pos = pointed_thing.above local pos = pointed_thing.above
local pd = true local pd = true
if type(IsPlayerNodeOwner)=="function" then if type(IsPlayerNodeOwner)=="function" then
if not IsPlayerNodeOwner(pos, placer:get_player_name()) and getLastOwner(pos) ~= "< Unknown >" then if not IsPlayerNodeOwner(pos, placer:get_player_name()) and HasOwner(pos) then
minetest.chat_send_player( placer:get_player_name(), "Sorry, "..getLastOwner(pos).." owns that spot." ) minetest.chat_send_player( placer:get_player_name(), "Sorry, "..getLastOwner(pos).." owns that spot." )
pd = false pd = false
end end