Fix being able to trap aghosts in lockers.
This ain't an ideal fix, I'll admit. But it's better than nothing. Fixes #4767
This commit is contained in:
@@ -2,6 +2,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Content.Server.Ghost.Components;
|
||||
using Content.Server.Tools.Components;
|
||||
using Content.Shared.ActionBlocker;
|
||||
using Content.Shared.Acts;
|
||||
@@ -209,6 +210,10 @@ namespace Content.Server.Storage.Components
|
||||
!entity.HasComponent<SharedBodyComponent>())
|
||||
continue;
|
||||
|
||||
// Let's not insert admin ghosts, yeah? This is really a a hack and should be replaced by attempt events
|
||||
if (entity.HasComponent<GhostComponent>())
|
||||
continue;
|
||||
|
||||
if (!AddToContents(entity))
|
||||
{
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user