From 50cbc1b31ec9079f09664c714842ffc12e0aab2b Mon Sep 17 00:00:00 2001 From: Anton Shukin Date: Sun, 11 Feb 2024 18:13:19 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BD=D0=B5=D0=B2=D0=BE=D0=B7=D0=BC=D0=BE?= =?UTF-8?q?=D0=B6=D0=BD=D0=BE=D1=81=D1=82=D1=8C=20=D0=BF=D0=BE=D0=B4=D0=BA?= =?UTF-8?q?=D0=BB=D1=8E=D1=87=D0=B5=D0=BD=D0=B8=D1=8F=20=D1=83=D0=B4=D0=BE?= =?UTF-8?q?=D1=87=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/entities/gmod_train_bogey/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/entities/gmod_train_bogey/init.lua b/lua/entities/gmod_train_bogey/init.lua index 37ce450..eb09bef 100644 --- a/lua/entities/gmod_train_bogey/init.lua +++ b/lua/entities/gmod_train_bogey/init.lua @@ -403,6 +403,9 @@ function ENT:CheckContact(pos,dir,id,cpos) end end)]] end + if (traceEnt.CoupledWith == nil) then + self.Connectors[id] = nil + end end return false elseif traceEnt:GetClass() == "player" and self.Voltage > 40 then