Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobs fish migrate to get_mod_translator(). Related to #328 #1923

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions mods/_various/mobs_fish/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local SL = lord.require_intllib()
local S = minetest.get_mod_translator()
if mobs.mod and mobs.mod == "redo" then

local SPRITE_VERSION = false -- set to true to use upright sprites instead of meshes
Expand Down Expand Up @@ -71,7 +71,7 @@ local SPRITE_VERSION = false -- set to true to use upright sprites instead of me
})
--name, nodes, neighbours, minlight, maxlight, interval, chance, active_object_count, min_height, max_height
--mobs:spawn_specific("mobs_fish:clownfish", l_spawn_in, l_spawn_near, 5, 20, 30, l_spawn_chance, 1, -31000, l_water_level)
mobs:register_egg("mobs_fish:clownfish", SL("Clownfish"), "animal_clownfish_clownfish_item.png", 0)
mobs:register_egg("mobs_fish:clownfish", S("Clownfish"), "animal_clownfish_clownfish_item.png", 0)

-- Tropical fish
mobs:register_mob("mobs_fish:tropical", {
Expand Down Expand Up @@ -105,6 +105,6 @@ local SPRITE_VERSION = false -- set to true to use upright sprites instead of me
})
--name, nodes, neighbours, minlight, maxlight, interval, chance, active_object_count, min_height, max_height
--mobs:spawn_specific("mobs_fish:tropical", l_spawn_in, l_spawn_near, 5, 20, 30, l_spawn_chance, 1, -31000, l_water_level)
mobs:register_egg("mobs_fish:tropical", SL("Tropical fish"), "animal_fish_blue_white_fish_blue_white_item.png", 0)
mobs:register_egg("mobs_fish:tropical", S("Tropical fish"), "animal_fish_blue_white_fish_blue_white_item.png", 0)

end
3 changes: 3 additions & 0 deletions mods/_various/mobs_fish/locale/mobs_fish.ru.tr
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# textdomain: mobs_fish
Clownfish=Рыба клоун
Tropical fish=Тропическая рыбка
3 changes: 0 additions & 3 deletions mods/_various/mobs_fish/locale/ru.txt

This file was deleted.

Loading