mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-22 16:10:18 +01:00
oops, S() needs to stay in init.lua
This commit is contained in:
parent
1a18413a37
commit
07fa9d5583
7
init.lua
7
init.lua
@ -20,6 +20,13 @@ homedecor.modpath = minetest.get_modpath("homedecor")
|
||||
homedecor.intllib_modpath = minetest.get_modpath("intllib")
|
||||
|
||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
||||
local S
|
||||
if homedecor.intllib_modpath then
|
||||
dofile(homedecor.intllib_modpath.."/intllib.lua")
|
||||
S = intllib.Getter(minetest.get_current_modname())
|
||||
else
|
||||
S = function ( s ) return s end
|
||||
end
|
||||
|
||||
local dbg = function(s)
|
||||
if homedecor.debug == 1 then
|
||||
|
Loading…
Reference in New Issue
Block a user