1
0
mirror of https://github.com/minetest-mods/intllib.git synced 2025-01-09 09:30:26 +01:00

Use get_modpath() to check for mod existence

This commit is contained in:
ShadowNinja 2014-12-12 16:36:57 -05:00
parent 3a3da7359c
commit c4335aa3dc

View File

@ -12,7 +12,7 @@ it at the beginning of your source file(s):
-- Boilerplate to support localized strings if intllib mod is installed. -- Boilerplate to support localized strings if intllib mod is installed.
local S local S
if intllib then if minetest.get_modpath("intllib") then
S = intllib.Getter() S = intllib.Getter()
else else
S = function(s) return s end S = function(s) return s end