Minor changes
parent
491818fc03
commit
3e2e2df3ed
|
@ -9,7 +9,6 @@ read_globals = {
|
|||
"PseudoRandom", "ItemStack",
|
||||
"AreaStore",
|
||||
"default",
|
||||
"intllib",
|
||||
"hud",
|
||||
"mesecon",
|
||||
table = { fields = { "copy", "getn", "indexof" } }
|
||||
|
|
|
@ -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))
|
||||
|
|
10
init.lua
10
init.lua
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue