From 703403949613f5a4559ebe8779e98216744b6599 Mon Sep 17 00:00:00 2001 From: Hellss Date: Mon, 4 Jul 2022 13:35:12 +0300 Subject: [PATCH] Metrostroi.TrainClasses NoTrain FIX --- lua/autorun/metrostroi.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/autorun/metrostroi.lua b/lua/autorun/metrostroi.lua index 62a489c..5f98fff 100644 --- a/lua/autorun/metrostroi.lua +++ b/lua/autorun/metrostroi.lua @@ -59,7 +59,7 @@ if not Metrostroi then timer.Simple(0.05, function() for name in pairs(scripted_ents.GetList()) do local prefix = "gmod_subway_" - if string.sub(name,1,#prefix) == prefix and scripted_ents.Get(name).Base == "gmod_subway_base" then + if string.sub(name,1,#prefix) == prefix and scripted_ents.Get(name).Base == "gmod_subway_base" and not scripted_ents.Get(name).NoTrain then table.insert(Metrostroi.TrainClasses,name) Metrostroi.IsTrainClass[name] = true end