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

Merge pull request #478 from SmileDoge/CoupleFix

Fix for AI trains
This commit is contained in:
CrIcKeT98
2022-07-12 00:30:44 +03:00
committed by GitHub

View File

@@ -1126,7 +1126,7 @@ function ENT:CreateCouple(pos,ang,forward,typ)
table.insert(self.JointPositions,index,x)
-- Constraint bogey to the train
if self.NoPhysics then
bogey:SetParent(coupler)
coupler:SetParent(self)
else
constraint.AdvBallsocket(
self,