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

Metrostroi.TrainClasses NoTrain FIX

This commit is contained in:
Hellss
2022-07-04 13:35:12 +03:00
parent 7383dcdd45
commit 7034039496

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