1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-04 00:52:33 +00:00

Оптимизация фикса сцепки

This commit is contained in:
ZONT_
2026-04-30 02:56:19 +03:00
parent 38688cc83a
commit db63831dde
2 changed files with 9 additions and 2 deletions

View File

@@ -315,8 +315,7 @@ end
local vector_zero = Vector(0, 0, 0)
function ENT:Think()
local train = self:GetNW2Entity("TrainEntity")
if IsValid(train) and train.OnCoupled and not IsValid(self.Coupled) then
if self.TrainSpawnerCoupleFix then
-- Fixing crazy physics on spawn
local phy = self:GetPhysicsObject()
if IsValid(phy) then