1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-02 00:42:29 +00:00

Merge pull request #511 from metrostroi-repo/#510

#510
This commit is contained in:
CrIcKeT98
2022-07-12 01:57:22 +03:00
committed by GitHub

View File

@@ -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