Fix place_param2 of leaves to not conflict with biomes ids

This commit is contained in:
cora 2022-09-29 05:42:00 +02:00 committed by Gitea
parent de28d2e57e
commit b08e72a37c
3 changed files with 4 additions and 4 deletions

View File

@ -1401,7 +1401,7 @@ minetest.register_abm({
return
end
local n0 = minetest.get_node(p0)
if n0.param2 ~= 0 then
if n0.param2 ~= 1 then
-- Prevent leafdecay for player-placed leaves.
-- param2 is set to 1 after it was placed by the player
return

Binary file not shown.

Before

Width:  |  Height:  |  Size: 248 B

After

Width:  |  Height:  |  Size: 186 B

View File

@ -1110,7 +1110,7 @@ local function register_biomes()
humidity_point = 36,
heat_point = 79,
_mcl_biome_type = "hot",
_mcl_palette_index = 1,
_mcl_palette_index = 30,
})
minetest.register_biome({
name = "Savanna_beach",
@ -1125,7 +1125,7 @@ local function register_biomes()
humidity_point = 36,
heat_point = 79,
_mcl_biome_type = "hot",
_mcl_palette_index = 1,
_mcl_palette_index = 30,
})
minetest.register_biome({
name = "Savanna_ocean",
@ -1140,7 +1140,7 @@ local function register_biomes()
humidity_point = 36,
heat_point = 79,
_mcl_biome_type = "hot",
_mcl_palette_index = 1,
_mcl_palette_index = 30,
})
-- Savanna M