Minor changes

master
Maksim 2022-04-17 12:44:11 +02:00
parent 491818fc03
commit 3e2e2df3ed
4 changed files with 1 additions and 12 deletions

View File

@ -9,7 +9,6 @@ read_globals = {
"PseudoRandom", "ItemStack",
"AreaStore",
"default",
"intllib",
"hud",
"mesecon",
table = { fields = { "copy", "getn", "indexof" } }

View File

@ -432,7 +432,6 @@ minetest.register_chatcommand("areas_cleanup", {
total = total + 1
end
areas:save()
areas:populateStore()
return true, S("Total areas: @1, Removed: @2 areas. New count: @3.",
total, count, (total - count))

View File

@ -4,15 +4,7 @@
areas = {}
local translator = minetest.get_translator
local S = translator and translator("areas") or intllib.make_gettext_pair()
if translator and not minetest.is_singleplayer() then
local lang = minetest.settings:get("language")
if lang and lang == "ru" then
S = intllib.make_gettext_pair()
end
end
local S = minetest.get_translator_auto({"ru"})
areas.S = S

View File

@ -125,7 +125,6 @@ function areas:remove(id, recurse)
-- The subarea parent will be niled out if the
-- removed area does not have a parent
self.areas[cid].parent = parent
end
end