fix gateway portal (#19618)

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas 2023-08-29 04:50:37 +01:00 committed by GitHub
parent 7dd3d01a67
commit 92b440c715
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -103,8 +103,8 @@ public sealed class GatewaySystem : EntitySystem
private void OpenPortal(EntityUid uid, GatewayComponent comp, EntityUid dest, GatewayDestinationComponent destComp)
{
_linkedEntity.TryLink(uid, dest);
EnsureComp<PortalComponent>(uid);
EnsureComp<PortalComponent>(dest);
EnsureComp<PortalComponent>(uid).CanTeleportToOtherMaps = true;
EnsureComp<PortalComponent>(dest).CanTeleportToOtherMaps = true;
// for ui
comp.LastOpen = _timing.CurTime;