From 047e99a6733455b35c7c0b7798e6b821f7a7baa0 Mon Sep 17 00:00:00 2001 From: TcePrepK <56453014+TcePrepK@users.noreply.github.com> Date: Sat, 7 Nov 2020 23:45:48 +0300 Subject: [PATCH] Update logic.js --- src/js/game/logic.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/game/logic.js b/src/js/game/logic.js index 9951ca36..0a7e0c4d 100644 --- a/src/js/game/logic.js +++ b/src/js/game/logic.js @@ -243,10 +243,10 @@ export class GameLogic { const targetStaticComp = targetEntity.components.StaticMapEntity; - // Check if its a tunnel + // Check if its a crossing const wireTunnelComp = targetEntity.components.WireTunnel; if (wireTunnelComp) { - return wireTunnelComp.CanConnectWorld(targetStaticComp, offset); + return true; } // Check if its a wire