1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 06:11:47 +02:00

Removed whitespaces

This commit is contained in:
LeMagnesium
2015-06-10 17:14:58 +02:00
parent 4bc80ddba1
commit f81b8ca677
126 changed files with 954 additions and 954 deletions

View File

@ -145,7 +145,7 @@ function add_protected_bukket_liquid(nameofbukket,liquidsourcename)
end
-- Check if pointing to a buildable node
local n = minetest.get_node(pointed_thing.under)
if is_protected_area(pointed_thing.under, 4 ,user:get_player_name()) then
minetest.chat_send_player(user:get_player_name(),"You can't place here - Too short of a protected area. (less than or equal to 4 blocks)")
if minetest.is_protected(pointed_thing.under,user:get_player_name()) then
@ -153,7 +153,7 @@ function add_protected_bukket_liquid(nameofbukket,liquidsourcename)
end
return itemstack
end
if minetest.registered_nodes[n.name].buildable_to then
-- buildable; replace the node
minetest.log("action", user:get_player_name().. " use "..nameofbukket.." at ".. minetest.pos_to_string(pointed_thing.under))

View File

@ -35,7 +35,7 @@ minetest.register_entity(":__builtin:falling_node", {
}
self.object:set_properties(prop)
end,
set_owner = function(self, owner)
if owner ~= nil then
self.owner = "falling"
@ -181,7 +181,7 @@ if PROTECT_LAVA_REALTIME == 1 then
interval = 1,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
local meta = minetest.get_meta(pos)
local meta = minetest.get_meta(pos)
if meta:get_string("owner") ~= nil and minetest.is_protected(pos, meta:get_string("owner")) then
minetest.add_node(pos,{name="air"})
end
@ -196,7 +196,7 @@ if PROTECT_WATER_REALTIME == 1 then
interval = 1,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
local meta = minetest.get_meta(pos)
local meta = minetest.get_meta(pos)
if meta:get_string("owner") ~= nil and minetest.is_protected(pos, meta:get_string("owner")) then
minetest.add_node(pos,{name="air"})
end
@ -224,7 +224,7 @@ end
-- local meta = minetest.get_meta(area:position(p_pos))
-- if minetest.get_name_from_content_id(data[p_pos])== "default:lava_source" and meta:get_string("owner") ~= nil and minetest.is_protected(area:position(p_pos), meta:get_string("owner")) then
-- data[p_pos] = c_air
-- end
-- end
-- vm:set_data(data)
-- vm:write_to_map()
-- vm:update_map()