Add files via upload

master
Jared Landers 2019-06-01 10:57:02 -07:00 committed by GitHub
parent c104f4762d
commit e9c6da2608
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 3 deletions

View File

@ -76,9 +76,14 @@ multiplacer.activate = function(itemstack, player, delete, pointed_thing, mode1,
-- end
if not minetest.is_protected(pos, player:get_player_name()) then
if not areas then
return nil;
end
if #areas:getNodeOwners(pos) > 0 then
if delete then
if minetest.get_node(pos).name == daten[1] then
minetest.set_node(pos, {name = "air"});
end
else
minetest.add_node( pos, { name = daten[1], param1 = daten[2], param2 = daten[3] } );
end
elseif #areas:getNodeOwners(pos) > 0 then
if delete then
if minetest.get_node(pos).name == daten[1] then
minetest.set_node(pos, {name = "air"});