mirror of
https://github.com/minetest-mods/digilines.git
synced 2025-06-26 21:50:23 +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 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.
|
||||
-- We define a proxy table whose methods can be called with the
|
||||
-- `foo:bar` notation, and it will redirect the call to the
|
||||
|
Loading…
x
Reference in New Issue
Block a user