Skip to content

Commit

Permalink
Mobs fish migrate to get_mod_translator(). Related to #328
Browse files Browse the repository at this point in the history
  • Loading branch information
lord-papirus authored and alek13 committed Jan 8, 2025
1 parent 37e7717 commit a570c7a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
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.

0 comments on commit a570c7a

Please sign in to comment.