fix not actually matching at the end

This commit is contained in:
techbot 2023-09-30 15:02:19 +02:00
parent 90e846ff61
commit 12832b5359

View File

@ -606,7 +606,7 @@ function PART:ProcessModelChange()
local path = self.Model
if path:find("://", nil, true) then
if path:StartWith("objhttp") or path:StartWith("obj:http") or path:match("%.obj%p") or self.ForceObjUrl then
if path:StartWith("objhttp") or path:StartWith("obj:http") or path:match("%.obj%p?") or self.ForceObjUrl then
path = path:gsub("^objhttp","http"):gsub("^obj:http","http")
self.loading = "downloading obj"