1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-25 02:00:37 +01:00

[snow] Remove unused ABMs

This commit is contained in:
LeMagnesium 2016-08-03 22:59:55 +02:00
parent f3001afa7b
commit 7e8d318596
No known key found for this signature in database
GPG Key ID: A54DDB5272C51E8B

View File

@ -152,7 +152,7 @@ minetest.register_abm({
--[[
--Grow Pine Saplings --Grow Pine Saplings
minetest.register_abm({ minetest.register_abm({
nodenames = {"snow:sapling_pine"}, nodenames = {"snow:sapling_pine"},
@ -171,7 +171,7 @@ minetest.register_abm({
end end
-- 'then' let the sapling grow into a tree. ~ LazyJ -- 'then' let the sapling grow into a tree. ~ LazyJ
snow.make_pine(pos,false) -- snow.make_pine(pos,false)
-- This finds the sapling under the grown tree. ~ LazyJ -- This finds the sapling under the grown tree. ~ LazyJ
if minetest.get_node(pos).name == "snow:sapling_pine" then if minetest.get_node(pos).name == "snow:sapling_pine" then
-- This switches the sapling to a tree trunk. ~ LazyJ -- This switches the sapling to a tree trunk. ~ LazyJ
@ -181,11 +181,11 @@ minetest.register_abm({
minetest.log("action", "A pine sapling grows into a tree at "..minetest.pos_to_string(pos)) minetest.log("action", "A pine sapling grows into a tree at "..minetest.pos_to_string(pos))
end end
end end
}) })]]
--[[
--Grow Christmas Tree Saplings --Grow Christmas Tree Saplings
minetest.register_abm({ minetest.register_abm({
nodenames = {"snow:xmas_tree"}, nodenames = {"snow:xmas_tree"},
@ -201,14 +201,14 @@ minetest.register_abm({
end end
-- 'then' let the sapling grow into a tree. ~ LazyJ -- 'then' let the sapling grow into a tree. ~ LazyJ
snow.make_pine(pos,false,true) --snow.make_pine(pos,false,true)
minetest.log("action", "A pine sapling grows into a Christmas tree at "..minetest.pos_to_string(pos)) -- ~ LazyJ minetest.log("action", "A pine sapling grows into a Christmas tree at "..minetest.pos_to_string(pos)) -- ~ LazyJ
--else -- 'Else', if there isn't air in each of the 8 nodes above the sapling, --else -- 'Else', if there isn't air in each of the 8 nodes above the sapling,
-- then don't anything; including not allowing the sapling to grow. -- then don't anything; including not allowing the sapling to grow.
-- ~ LazyJ, 2014_04_10 -- ~ LazyJ, 2014_04_10
--end --end
end end
}) })]]