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:
@@ -504,6 +504,7 @@ function TOOL:RightClick(trace)
|
|||||||
for k,v in pairs(ent.CustomSpawnerUpdates) do if k ~= "BaseClass" then v(ent) end end
|
for k,v in pairs(ent.CustomSpawnerUpdates) do if k ~= "BaseClass" then v(ent) end end
|
||||||
hook.Run("MetrostroiSpawnerUpdate",ent,self.Settings)
|
hook.Run("MetrostroiSpawnerUpdate",ent,self.Settings)
|
||||||
ent:UpdateTextures()
|
ent:UpdateTextures()
|
||||||
|
ent._Settings = self.Settings
|
||||||
table.insert(trains,ent)
|
table.insert(trains,ent)
|
||||||
if self.Train.Spawner.postfunc then self.Train.Spawner.postfunc(trains,self.Settings.WagNum) end
|
if self.Train.Spawner.postfunc then self.Train.Spawner.postfunc(trains,self.Settings.WagNum) end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user