mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2024-09-27 14:50:30 +02:00
Call 'global_exists' in place of 'get_modpath' for 'intllib' check
This commit is contained in:
parent
fbfb079f54
commit
af30944e1f
2
init.lua
2
init.lua
|
@ -11,7 +11,7 @@ Licensed under the zlib license. See LICENSE.md for more information.
|
||||||
moreblocks = {}
|
moreblocks = {}
|
||||||
|
|
||||||
local S
|
local S
|
||||||
if minetest.get_modpath("intllib") then
|
if minetest.global_exists("intllib") then
|
||||||
S = intllib.Getter()
|
S = intllib.Getter()
|
||||||
else
|
else
|
||||||
S = function(s) return s end
|
S = function(s) return s end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user