Update sapling alias compatibility

This commit is contained in:
Starbeamrainbowlabs 2021-08-12 01:09:24 +01:00
parent eb9236a153
commit 62582b6abb
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2
2 changed files with 9 additions and 2 deletions

@ -21,6 +21,7 @@ Note to self: See the bottom of this file for the release template text.
- `//airapply`: Improve error handling, fix safe_region node counter
- `//floodfill`: Fix crash caused by internal refactoring of the `Queue` data structure
- `//spop`: Fix wording in displayed message
- Sapling aliases: Correct alias of `default:sapling` from `oak` to `apple` (since it produces apples), and `moretrees:apple_tree_sapling_ongen` from `apple` to `apple_moretrees`
## v1.12: The selection tools update (26th June 2021)

@ -16,7 +16,7 @@ Alternatively, you can register support in your mod directly. Do that by adding
if minetest.get_modpath("default") then
worldeditadditions.register_sapling_alias_many({
{ "default:sapling", "oak" },
{ "default:sapling", "apple" },
{ "default:bush_sapling", "bush" },
{ "default:pine_sapling", "pine" },
{ "default:pine_bush_sapling", "pine_bush" },
@ -40,7 +40,7 @@ if minetest.get_modpath("moretrees") then
{ "moretrees:willow_sapling_ongen", "willow_moretrees" },
{ "moretrees:poplar_sapling_ongen", "poplar" },
{ "moretrees:poplar_small_sapling_ongen", "poplar_small" },
{ "moretrees:apple_tree_sapling_ongen", "apple" },
{ "moretrees:apple_tree_sapling_ongen", "apple_moretrees" },
{ "moretrees:birch_sapling_ongen", "birch_moretrees" },
{ "moretrees:palm_sapling_ongen", "palm_moretrees" },
{ "moretrees:date_palm_sapling_ongen", "palm_date" },
@ -110,6 +110,12 @@ end
if minetest.get_modpath("palm") then
worldeditadditions.register_sapling_alias("palm:sapling", "palm")
end
if minetest.get_modpath("plumtree") then
worldeditadditions.register_sapling_alias("plumtree:sapling", "plum")
end
if minetest.get_modpath("hollytree") then
worldeditadditions.register_sapling_alias("hollytree:sapling", "holly")
end
if minetest.get_modpath("pomegranate") then
worldeditadditions.register_sapling_alias("pomegranate:sapling", "pomegranate")
end