1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-02-18 22:09:20 +00:00

Update logic.js

This commit is contained in:
TcePrepK 2020-11-07 23:45:48 +03:00 committed by GitHub
parent f15c1d4c4b
commit 047e99a673
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -243,10 +243,10 @@ export class GameLogic {
const targetStaticComp = targetEntity.components.StaticMapEntity; const targetStaticComp = targetEntity.components.StaticMapEntity;
// Check if its a tunnel // Check if its a crossing
const wireTunnelComp = targetEntity.components.WireTunnel; const wireTunnelComp = targetEntity.components.WireTunnel;
if (wireTunnelComp) { if (wireTunnelComp) {
return wireTunnelComp.CanConnectWorld(targetStaticComp, offset); return true;
} }
// Check if its a wire // Check if its a wire