simple-shooter-game/mods/misc/xcompat/src/materials.lua
2025-12-09 23:32:49 -08:00

8 lines
302 B
Lua

local filename = xcompat.gameid
--if we dont have a materials file for the game, use minetest
if not xcompat.utilities.file_exists(xcompat.modpath .. "/src/materials/" .. filename .. ".lua") then
filename = "minetest"
end
return dofile(xcompat.modpath .. "/src/materials/" .. filename .. ".lua")