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

Merge pull request #441 from metrostroi-repo/#440

#440
This commit is contained in:
HellReach
2022-01-13 18:08:16 +03:00
committed by GitHub
2 changed files with 29 additions and 4 deletions

View File

@@ -627,6 +627,14 @@ local function createFrame()
Draw()
end
net.Receive("train_spawner_open",function()
local tbl = net.ReadTable()
local tool = LocalPlayer():GetTool("train_spawner")
Settings[tbl.Train] = tbl
Settings.Train = tbl.Train
tool.Settings = tbl
UpdateConCMD()
end)
net.Receive("MetrostroiTrainSpawner",createFrame)
net.Receive("MetrostroiMaxWagons", function()
MaxWagons = GetGlobalInt("metrostroi_maxtrains")*GetGlobalInt("metrostroi_maxwagons")