mirror of
https://github.com/minetest-mods/digilines.git
synced 2025-06-27 06:00:24 +02:00
Show a more helpful error text when no supported game could be found
This commit is contained in:
parent
ef4e169c46
commit
e54910c9fe
4
init.lua
4
init.lua
@ -12,6 +12,10 @@ digilines.mcl = minetest.get_modpath("mcl_core")
|
|||||||
if minetest.get_modpath("default") then digilines.sounds = default end
|
if minetest.get_modpath("default") then digilines.sounds = default end
|
||||||
if digilines.mcl then digilines.sounds = mcl_sounds end
|
if digilines.mcl then digilines.sounds = mcl_sounds end
|
||||||
|
|
||||||
|
-- Show a more helpful error message to the player
|
||||||
|
assert(digilines.sounds,
|
||||||
|
"Digilines requires Minetest Game or a VoxeLibre (-compatible) game.")
|
||||||
|
|
||||||
-- Backwards compatibility code.
|
-- Backwards compatibility code.
|
||||||
-- We define a proxy table whose methods can be called with the
|
-- We define a proxy table whose methods can be called with the
|
||||||
-- `foo:bar` notation, and it will redirect the call to the
|
-- `foo:bar` notation, and it will redirect the call to the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user