forked from mtcontrib/homedecor_modpack
testing...
This commit is contained in:
parent
712caa8021
commit
b04cae0161
|
@ -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()) 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." )
|
minetest.chat_send_player( placer:get_player_name(), "Sorry, "..getLastOwner(pos).." owns that spot." )
|
||||||
pd = false
|
pd = false
|
||||||
end
|
end
|
||||||
|
@ -174,8 +174,8 @@ minetest.register_node("homedecor:door_wood_plain_bottom_right", {
|
||||||
on_place = function(itemstack, placer, pointed_thing)
|
on_place = function(itemstack, placer, pointed_thing)
|
||||||
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()) 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." )
|
minetest.chat_send_player( placer:get_player_name(), "Sorry, "..getLastOwner(pos).." owns that spot." )
|
||||||
pd = false
|
pd = false
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user