Fix warning in mcl_end

This fixes:
```
2021-07-10 10:00:58: WARNING[Main]: get_mapgen_params is deprecated; use get_mapgen_setting instead (at .../../games/MineClone2/mods/ITEMS/mcl_end/chorus_plant.lua:456)
```
This commit is contained in:
Emojigit 2021-07-10 10:16:55 +08:00
parent 6e1758400e
commit d2f7d31360
No known key found for this signature in database
GPG key ID: 2443E5F619026B90

View file

@ -453,7 +453,7 @@ function mcl_end.grow_chorus_plant_step(pos, node, pr)
end end
--- ABM --- --- ABM ---
local seed = minetest.get_mapgen_params().seed local seed = minetest.get_mapgen_setting("seed")
local pr = PseudoRandom(seed) local pr = PseudoRandom(seed)
minetest.register_abm({ minetest.register_abm({
label = "Chorus plant growth", label = "Chorus plant growth",