mirror of
https://github.com/minetest-mods/intllib.git
synced 2025-07-21 17:10:23 +02:00
Use get_modpath() to check for mod existence
This commit is contained in:
@ -12,7 +12,7 @@ it at the beginning of your source file(s):
|
||||
|
||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
||||
local S
|
||||
if intllib then
|
||||
if minetest.get_modpath("intllib") then
|
||||
S = intllib.Getter()
|
||||
else
|
||||
S = function(s) return s end
|
||||
|
Reference in New Issue
Block a user