Show a more helpful error text when no supported game could be found

This commit is contained in:
SmallJoker 2025-06-21 21:03:44 +02:00
parent ef4e169c46
commit e54910c9fe

View File

@ -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