1
0
鏡像自 https://github.com/minetest-mods/digilines.git 已同步 2025-11-05 08:35:29 +01:00

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

此提交包含在:
SmallJoker
2025-06-21 21:03:44 +02:00
父節點 ef4e169c46
當前提交 e54910c9fe

查看文件

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