From 37a7fd6cc8ddc9eb303a2e66e27f9d3c21de7cfb Mon Sep 17 00:00:00 2001 From: wsor4035 <24964441+wsor4035@users.noreply.github.com> Date: Sat, 1 Jun 2024 20:37:39 -0400 Subject: [PATCH] fix https://github.com/mt-mods/xcompat/issues/28 - fuzzy match minetest game forks --- src/gameid.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gameid.lua b/src/gameid.lua index d2d343f..b21b0b1 100644 --- a/src/gameid.lua +++ b/src/gameid.lua @@ -27,4 +27,7 @@ end --for games that are similar/derviatives of other games if game_alias[gameid] then gameid = game_alias[gameid] end +--while minetest game derviates are not supported, we can still try to detect them +if minetest.get_modpath("default") then gameid = "minetest" end + return gameid \ No newline at end of file