mirror of
https://github.com/minetest-mods/technic.git
synced 2025-06-28 06:20:30 +02:00
reduce intllib code
This commit is contained in:
@ -1,12 +1,9 @@
|
||||
local modpath = minetest.get_modpath("technic_worldgen")
|
||||
|
||||
technic = rawget(_G, "technic") or {}
|
||||
technic.worldgen = {}
|
||||
if rawget(_G, "intllib") then
|
||||
technic.worldgen.gettext = intllib.Getter()
|
||||
else
|
||||
technic.worldgen.gettext = function(s) return s end
|
||||
end
|
||||
technic.worldgen = {
|
||||
gettext = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end,
|
||||
}
|
||||
|
||||
dofile(modpath.."/config.lua")
|
||||
dofile(modpath.."/nodes.lua")
|
||||
|
Reference in New Issue
Block a user