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

another test

This commit is contained in:
Vanessa Ezekowitz 2012-10-09 04:55:03 -04:00
parent 8d9537628f
commit f5dc0cb014

View File

@ -72,7 +72,7 @@ minetest.register_node("homedecor:door_wood_plain_bottom_left", {
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
local pos = pointed_thing.above local pos = pointed_thing.above
if type(IsPlayerNodeOwner)=="function" then if type(IsPlayerNodeOwner)=="function" then
if not IsPlayerNodeOwner(pos, user:get_player_name()) then if not IsPlayerNodeOwner(pos, placer:get_player_name()) 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." )
end end
else else
@ -172,7 +172,7 @@ 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
if type(IsPlayerNodeOwner)=="function" then if type(IsPlayerNodeOwner)=="function" then
if not IsPlayerNodeOwner(pos, user:get_player_name()) then if not IsPlayerNodeOwner(pos, placer:get_player_name()) 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." )
end end
else else