mirror of
https://github.com/minetest-mods/digilines.git
synced 2025-06-30 15:30:22 +02:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
6
init.lua
6
init.lua
@ -1,13 +1,17 @@
|
||||
digilines = {}
|
||||
digilines.S = minetest.get_translator("digilines")
|
||||
|
||||
-- formspec escape translation
|
||||
digilines.FS = function (...)
|
||||
return minetest.formspec_escape(digilines.S(...))
|
||||
end
|
||||
|
||||
digilines.mcl = minetest.get_modpath("mcl_core")
|
||||
|
||||
-- sounds check
|
||||
if minetest.get_modpath("default") then digilines.sounds = default end
|
||||
if digilines.mcl then digilines.sounds = mcl_sounds end
|
||||
|
||||
|
||||
-- Backwards compatibility code.
|
||||
-- We define a proxy table whose methods can be called with the
|
||||
-- `foo:bar` notation, and it will redirect the call to the
|
||||
|
Reference in New Issue
Block a user