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

Merge pull request #622 from metrostroi-repo/#595

Замена self:GetOwner() на self:GetPlayer()
This commit is contained in:
Sherbanov Kosmik
2025-12-03 18:34:19 +03:00
committed by GitHub
11 changed files with 21 additions and 22 deletions

View File

@@ -60,7 +60,7 @@ concommand.Add("metrostroi_debugtrainsystems", cmdinithandler, nil, "Add aimed a
-- Automatically engage debugger for train owner
function Metrostroi.DebugTrain(train,ply)
if not ply then ply = train:GetOwner() end
if not ply then ply = train:GetPlayer() end
if (not IsValid(train)) or (not IsValid(ply)) then return end
AddClient(ply,train)