From 12832b535905a72ad24560e0f57fcff393be972f Mon Sep 17 00:00:00 2001 From: techbot Date: Sat, 30 Sep 2023 15:02:19 +0200 Subject: [PATCH] fix not actually matching at the end --- lua/pac3/core/client/parts/model.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/pac3/core/client/parts/model.lua b/lua/pac3/core/client/parts/model.lua index 352e721c..d8fe5de4 100644 --- a/lua/pac3/core/client/parts/model.lua +++ b/lua/pac3/core/client/parts/model.lua @@ -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"