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

Update train_spawner.lua

This commit is contained in:
Ilya Krasnow
2022-04-10 03:02:40 +03:00
parent cd43f78a24
commit 72f8718009

View File

@@ -504,6 +504,7 @@ function TOOL:RightClick(trace)
for k,v in pairs(ent.CustomSpawnerUpdates) do if k ~= "BaseClass" then v(ent) end end
hook.Run("MetrostroiSpawnerUpdate",ent,self.Settings)
ent:UpdateTextures()
ent._Settings = self.Settings
table.insert(trains,ent)
if self.Train.Spawner.postfunc then self.Train.Spawner.postfunc(trains,self.Settings.WagNum) end
end