mirror of
https://github.com/mt-mods/xcompat.git
synced 2025-07-21 09:55:33 +02:00
add player compatibility api (#41)
This commit is contained in:
8
src/player.lua
Normal file
8
src/player.lua
Normal file
@ -0,0 +1,8 @@
|
||||
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")
|
Reference in New Issue
Block a user