1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2025-06-29 23:01:00 +02:00

code consistency

This commit is contained in:
tenplus1
2022-09-15 15:12:53 +01:00
parent 7be6bee04c
commit ff8e0d73a4
3 changed files with 25 additions and 15 deletions

View File

@ -156,12 +156,15 @@ farming.registered_plants["farming:pepper"] = {
}
-- mapgen
local grow_on = farming.mapgen == "v6" and {"default:dirt_with_grass"}
or {"default:dirt_with_rainforest_litter"}
local mg = farming.mapgen == "v6"
def = {
grow_on = mg and {"default:dirt_with_grass"} or {"default:dirt_with_rainforest_litter"}
}
minetest.register_decoration({
deco_type = "simple",
place_on = grow_on,
place_on = def.grow_on,
sidelen = 16,
noise_params = {
offset = 0,