mirror of
git://repo.or.cz/minetest_schemedit.git
synced 2025-01-09 17:40:32 +01:00
Add compability mode for minetest.get_translator
This commit is contained in:
parent
82afdd8c1b
commit
100f3c65c5
7
init.lua
7
init.lua
@ -1,4 +1,9 @@
|
|||||||
local S = minetest.get_translator("schemedit")
|
local S
|
||||||
|
if minetest.get_translator then
|
||||||
|
S = minetest.get_translator("schemedit")
|
||||||
|
else
|
||||||
|
S = function(s) return s end
|
||||||
|
end
|
||||||
local F = minetest.formspec_escape
|
local F = minetest.formspec_escape
|
||||||
|
|
||||||
local schemedit = {}
|
local schemedit = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user