Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando-A-Rocha committed Aug 1, 2024
1 parent 2e4615d commit d739d01
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
9 changes: 9 additions & 0 deletions newmodels_reborn/optional/compatibility/server/funcs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ local function fixModList()
return true
end

local function isElementTypeSupported(et)
for type, _ in pairs(OLD_DATA_NAMES) do
if et == type then
return true
end
end
return false, "added "..et.." mods are not yet supported"
end

local function verifyOptionalModParameters(modInfo)
local ignoreTXD = modInfo.ignoreTXD or false
if (type(ignoreTXD) ~= "boolean") then
Expand Down
10 changes: 0 additions & 10 deletions newmodels_reborn/optional/compatibility/shared/funcs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@

local isClientsideScript = localPlayer ~= nil

function isElementTypeSupported(et)
for type, _ in pairs(OLD_DATA_NAMES) do
if et == type then
return true
end
end

return false, "added "..et.." mods are not yet supported"
end

local function convertCustomModelInfoToOldFormat(customModel, customModelInfo)
local baseModel = customModelInfo.baseModel
local colPath, txdPath, dffPath, name = customModelInfo.col, customModelInfo.txd, customModelInfo.dff, customModelInfo.name
Expand Down

0 comments on commit d739d01

Please sign in to comment.