From 174096ac87950de091938a0dc8bbbd05fb72e9da Mon Sep 17 00:00:00 2001 From: Craig Robbins Date: Wed, 20 Aug 2014 20:37:48 +1000 Subject: [PATCH] Removed obsolete or useless code Some commented code makes no sense because there is not comment as to why it's commented out. Removed. --- ferns/fern.lua | 26 -------------------------- ferns/gianttreefern.lua | 6 ------ ferns/treefern.lua | 3 +-- 3 files changed, 1 insertion(+), 34 deletions(-) diff --git a/ferns/fern.lua b/ferns/fern.lua index 38071a8..7a090b2 100644 --- a/ferns/fern.lua +++ b/ferns/fern.lua @@ -101,32 +101,6 @@ minetest.register_node("ferns:fern_01", { ----------------------------------------------------------------------------------------------- -- Spawning ----------------------------------------------------------------------------------------------- ---[[plantslib:spawn_on_surfaces({ - spawn_delay = 1200, - spawn_plants = {"ferns:fern"}, - spawn_chance = 800, - spawn_surfaces = { - "default:dirt_with_grass", - "default:mossycobble", - "dryplants:grass_short", - "default:jungletree", - "stoneage:grass_with_silex" - }, - seed_diff = 329, -}) -plantslib:spawn_on_surfaces({ - spawn_delay = 1200, - spawn_plants = {"ferns:fern_mid"}, - spawn_chance = 400, - spawn_surfaces = { - "default:dirt_with_grass", - "default:mossycobble", - "dryplants:grass_short", - "default:jungletree", - "stoneage:grass_with_silex" - }, - seed_diff = 329, -})]] assert(abstract_ferns.config.Lady_fern == true) diff --git a/ferns/gianttreefern.lua b/ferns/gianttreefern.lua index d559962..09fa613 100644 --- a/ferns/gianttreefern.lua +++ b/ferns/gianttreefern.lua @@ -98,8 +98,6 @@ minetest.register_node("ferns:tree_fern_leafs_giant", { visual_scale = math.sqrt(8), wield_scale = {x=0.175, y=0.175, z=0.175}, paramtype = "light", - --paramtype2 = "facedir", - --tiles = {"[combine:"..TSS..T1.."ferns_5.png"..T2.."ferns_6.png"..T3.."ferns_7.png"..T4.."ferns_8.png^[transformFX^[combine:"..TSS..T1.."ferns_5.png"..T2.."ferns_6.png"..T3.."ferns_7.png"..T4.."ferns_8.png"}, tiles = {"ferns_fern_tree_giant.png"}, inventory_image = "ferns_fern_tree.png", walkable = false, @@ -299,10 +297,6 @@ if abstract_ferns.config.Giant_Tree_Ferns_in_Jungle == true then near_nodes_vertical = 2,--4, near_nodes_count = 1, plantlife_limit = -0.9, - --humidity_max = 0.39,--1.0, - --humidity_min = 0.5, - --temp_max = -1,-- -1.2,-- -0.5, -- ~ 55C - --temp_min = -0.35,-- -0.07, -- ~ 25C }, abstract_ferns.grow_giant_tree_fern ) diff --git a/ferns/treefern.lua b/ferns/treefern.lua index ce034dc..01e2d2c 100644 --- a/ferns/treefern.lua +++ b/ferns/treefern.lua @@ -197,8 +197,7 @@ if abstract_ferns.config.Tree_Ferns_in_Jungle == true then surface = { "default:dirt_with_grass", "default:sand", - "default:desert_sand"--, - --"dryplants:grass_short" + "default:desert_sand", }, max_count = 35,--27, avoid_nodes = {"default:tree"},