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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user