update all generate, spawn, and grow calls

to use "." instead of ":" notation
(quells all those "deprecated" warnings)
This commit is contained in:
Vanessa Dannenberg
2021-07-19 14:18:01 -04:00
parent 46717958bc
commit a2976c609a
18 changed files with 48 additions and 48 deletions

View File

@ -299,7 +299,7 @@ flowers_plus.grow_waterlily = function(pos)
end
end
biome_lib:register_generate_plant({
biome_lib.register_on_generate({
surface = {"default:water_source"},
max_count = lilies_max_count,
rarity = lilies_rarity,
@ -321,7 +321,7 @@ flowers_plus.grow_seaweed = function(pos)
minetest.swap_node(right_here, {name="along_shore:seaweed_"..math.random(1,4), param2=math.random(1,3)})
end
biome_lib:register_generate_plant({
biome_lib.register_on_generate({
surface = {"default:water_source"},
max_count = seaweed_max_count,
rarity = seaweed_rarity,
@ -338,7 +338,7 @@ biome_lib:register_generate_plant({
-- seaweed at beaches
-- MM: not satisfied with it, but IMHO some beaches should have some algae
biome_lib:register_generate_plant({
biome_lib.register_on_generate({
surface = {"default:water_source"},
max_count = seaweed_max_count,
rarity = seaweed_rarity,
@ -354,7 +354,7 @@ biome_lib:register_generate_plant({
},
flowers_plus.grow_seaweed
)
biome_lib:register_generate_plant({
biome_lib.register_on_generate({
surface = {"default:sand"},
max_count = seaweed_max_count*2,
rarity = seaweed_rarity/2,
@ -371,7 +371,7 @@ biome_lib:register_generate_plant({
flowers_plus.grow_seaweed
)
biome_lib:register_generate_plant({
biome_lib.register_on_generate({
surface = {"default:dirt_with_grass"},
avoid_nodes = { "flowers:sunflower" },
max_count = sunflowers_max_count,
@ -386,7 +386,7 @@ biome_lib:register_generate_plant({
-- spawn ABM registrations
biome_lib:spawn_on_surfaces({
biome_lib.register_active_spawner({
spawn_delay = SPAWN_DELAY/2,
spawn_plants = {
"flowers:waterlily",
@ -408,7 +408,7 @@ biome_lib:spawn_on_surfaces({
random_facedir = {0,3}
})
biome_lib:spawn_on_surfaces({
biome_lib.register_active_spawner({
spawn_delay = SPAWN_DELAY*2,
spawn_plants = {"flowers:seaweed"},
spawn_chance = SPAWN_CHANCE*2,
@ -421,7 +421,7 @@ biome_lib:spawn_on_surfaces({
facedir = 1
})
biome_lib:spawn_on_surfaces({
biome_lib.register_active_spawner({
spawn_delay = SPAWN_DELAY*2,
spawn_plants = {"flowers:seaweed"},
spawn_chance = SPAWN_CHANCE*2,
@ -435,7 +435,7 @@ biome_lib:spawn_on_surfaces({
facedir = 1
})
biome_lib:spawn_on_surfaces({
biome_lib.register_active_spawner({
spawn_delay = SPAWN_DELAY*2,
spawn_plants = {"flowers:seaweed"},
spawn_chance = SPAWN_CHANCE*2,
@ -449,7 +449,7 @@ biome_lib:spawn_on_surfaces({
facedir = 1
})
biome_lib:spawn_on_surfaces({
biome_lib.register_active_spawner({
spawn_delay = SPAWN_DELAY*2,
spawn_plants = {"flowers:sunflower"},
spawn_chance = SPAWN_CHANCE*2,