Actual fix for lockers and deconstruction (#27431)
actual actual locker construction fix
This commit is contained in:
parent
ee35fb12a7
commit
783d3a9aa8
1 changed files with 3 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ namespace Content.Server.Construction.Conditions
|
|||
public bool Condition(EntityUid uid, IEntityManager entityManager)
|
||||
{
|
||||
if (!entityManager.TryGetComponent(uid, out LockComponent? lockcomp))
|
||||
return false;
|
||||
return true;
|
||||
|
||||
return lockcomp.Locked == IsLocked;
|
||||
}
|
||||
|
|
@ -25,7 +25,8 @@ namespace Content.Server.Construction.Conditions
|
|||
var entMan = IoCManager.Resolve<IEntityManager>();
|
||||
var entity = args.Examined;
|
||||
|
||||
if (!entMan.TryGetComponent(entity, out LockComponent? lockcomp)) return false;
|
||||
if (!entMan.TryGetComponent(entity, out LockComponent? lockcomp))
|
||||
return true;
|
||||
|
||||
switch (IsLocked)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue