diff options
Diffstat (limited to 'nature_classic')
-rw-r--r-- | nature_classic/blossom.lua | 6 | ||||
-rw-r--r-- | nature_classic/depends.txt | 1 | ||||
-rw-r--r-- | nature_classic/init.lua | 5 |
3 files changed, 9 insertions, 3 deletions
diff --git a/nature_classic/blossom.lua b/nature_classic/blossom.lua index 646a06e..8bb68e0 100644 --- a/nature_classic/blossom.lua +++ b/nature_classic/blossom.lua @@ -1,3 +1,5 @@ +-- support for i18n +local S = plantlife_i18n.gettext -- Blossoms and such local function spawn_apple_under(pos) @@ -12,7 +14,7 @@ local function spawn_apple_under(pos) end minetest.register_node(":"..nature.blossom_node, { - description = "Apple blossoms", + description = S("Apple blossoms"), drawtype = "allfaces_optional", tiles = nature.blossom_textures, paramtype = "light", @@ -23,7 +25,7 @@ minetest.register_node(":"..nature.blossom_node, { default.register_leafdecay({ trunks = { nature.blossom_trunk }, - leaves = { nature.blossom_node }, + leaves = { nature.blossom_node, nature.blossom_leaves }, radius = nature.blossom_decay, }) diff --git a/nature_classic/depends.txt b/nature_classic/depends.txt index 1246684..ad4030f 100644 --- a/nature_classic/depends.txt +++ b/nature_classic/depends.txt @@ -1,2 +1,3 @@ default +plantlife_i18n moretrees? diff --git a/nature_classic/init.lua b/nature_classic/init.lua index e61bad2..1135175 100644 --- a/nature_classic/init.lua +++ b/nature_classic/init.lua @@ -6,6 +6,9 @@ local current_mod_name = minetest.get_current_modname() nature = {} +-- support for i18n +local S = plantlife_i18n.gettext + nature.blossomqueue = {} nature.blossomqueue_max = 1000 @@ -44,4 +47,4 @@ dofile(minetest.get_modpath(current_mod_name) .. "/config.lua") dofile(minetest.get_modpath(current_mod_name) .. "/global_function.lua") dofile(minetest.get_modpath(current_mod_name) .. "/blossom.lua") -minetest.log("info", "[Nature Classic] loaded!") +minetest.log("info", S("[Nature Classic] loaded!")) |