mirror of
https://github.com/mt-mods/xcompat.git
synced 2025-07-19 17:00:32 +02:00
8 lines
300 B
Lua
8 lines
300 B
Lua
local filename = xcompat.gameid
|
|
|
|
--if we dont have a player file for the game, use minetest
|
|
if not xcompat.utilities.file_exists(xcompat.modpath .. "/src/player/" .. filename .. ".lua") then
|
|
filename = "xcompat_agnostic"
|
|
end
|
|
|
|
return dofile(xcompat.modpath .. "/src/player/" .. filename .. ".lua") |