From 32cd696e33549460e08b0f82c1e37494cddcb574 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Wed, 13 Nov 2013 18:54:06 -0500 Subject: [PATCH] fix incorrect plants_lib api call for anthills The aboid node was not correctly set resulting in metric assloads of anthills, which was clearly not intended :-) This also alises the current ones to air and replaces them with a new node name so as to clean up the overabundance. The alias and node name can be inverted later after it's certain that all old nodes have been cleaned out. --- mods/farming/init.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mods/farming/init.lua b/mods/farming/init.lua index 3635f7e..025e27e 100644 --- a/mods/farming/init.lua +++ b/mods/farming/init.lua @@ -508,18 +508,20 @@ local SPAWN_DELAY = 1000 local SPAWN_CHANCE = 200 local anthill_seed_diff = 339 +minetest.register_alias("farming:anthill", "air") -- to get rid of the old ones. + plantslib:spawn_on_surfaces({ spawn_delay = SPAWN_DELAY, - spawn_plants = {"farming:anthill"}, + spawn_plants = {"farming:ant_hill"}, avoid_radius = 10, spawn_chance = SPAWN_CHANCE/10, spawn_surfaces = {"default:dirt_with_grass"}, - avoid_nodes = {"group:poisonivy", "group:flower", "group:flora"}, + avoid_nodes = {"farming:ant_hill"}, seed_diff = anthill_seed_diff, light_min = 1, }) -minetest.register_node("farming:anthill",{ +minetest.register_node("farming:ant_hill",{ description = "Ant Hill", drawtype = "nodebox", sunlight_propagates = true,