testing...

This commit is contained in:
Vanessa Ezekowitz 2012-10-10 23:27:37 -04:00
parent 340cc7dfb1
commit 1fa7be5643

View File

@ -115,7 +115,7 @@ minetest.register_node("homedecor:door_closet_oak_bottom_left", {
end end
end end
if type(isprotect)=="function" then if type(isprotect)=="function" then
pd = isprotect(5, pos, placer:get_player_name()) pd = isprotect(5, pos, placer)
if not pd then if not pd then
minetest.chat_send_player( placer:get_player_name(), "Sorry, someone owns that spot." ) minetest.chat_send_player( placer:get_player_name(), "Sorry, someone owns that spot." )
end end
@ -259,7 +259,7 @@ minetest.register_node("homedecor:door_closet_oak_bottom_right", {
end end
end end
if type(isprotect)=="function" then if type(isprotect)=="function" then
pd = isprotect(5, pos, placer:get_player_name()) pd = isprotect(5, pos, placer)
if not pd then if not pd then
minetest.chat_send_player( placer:get_player_name(), "Sorry, someone owns that spot." ) minetest.chat_send_player( placer:get_player_name(), "Sorry, someone owns that spot." )
end end