Minor changes
parent
491818fc03
commit
3e2e2df3ed
|
@ -9,7 +9,6 @@ read_globals = {
|
||||||
"PseudoRandom", "ItemStack",
|
"PseudoRandom", "ItemStack",
|
||||||
"AreaStore",
|
"AreaStore",
|
||||||
"default",
|
"default",
|
||||||
"intllib",
|
|
||||||
"hud",
|
"hud",
|
||||||
"mesecon",
|
"mesecon",
|
||||||
table = { fields = { "copy", "getn", "indexof" } }
|
table = { fields = { "copy", "getn", "indexof" } }
|
||||||
|
|
|
@ -432,7 +432,6 @@ minetest.register_chatcommand("areas_cleanup", {
|
||||||
total = total + 1
|
total = total + 1
|
||||||
end
|
end
|
||||||
areas:save()
|
areas:save()
|
||||||
areas:populateStore()
|
|
||||||
|
|
||||||
return true, S("Total areas: @1, Removed: @2 areas. New count: @3.",
|
return true, S("Total areas: @1, Removed: @2 areas. New count: @3.",
|
||||||
total, count, (total - count))
|
total, count, (total - count))
|
||||||
|
|
10
init.lua
10
init.lua
|
@ -4,15 +4,7 @@
|
||||||
|
|
||||||
areas = {}
|
areas = {}
|
||||||
|
|
||||||
local translator = minetest.get_translator
|
local S = minetest.get_translator_auto({"ru"})
|
||||||
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
|
|
||||||
|
|
||||||
areas.S = S
|
areas.S = S
|
||||||
|
|
||||||
|
|
|
@ -125,7 +125,6 @@ function areas:remove(id, recurse)
|
||||||
-- The subarea parent will be niled out if the
|
-- The subarea parent will be niled out if the
|
||||||
-- removed area does not have a parent
|
-- removed area does not have a parent
|
||||||
self.areas[cid].parent = parent
|
self.areas[cid].parent = parent
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue