Disallow welding of open lockers (#1011)
Co-authored-by: boiled water <hex0ffender@protonmail.com>
This commit is contained in:
parent
12b5f3ebc5
commit
0e2f4fda31
1 changed files with 4 additions and 0 deletions
|
|
@ -367,6 +367,10 @@ namespace Content.Server.GameObjects.Components
|
|||
|
||||
public bool InteractUsing(InteractUsingEventArgs eventArgs)
|
||||
{
|
||||
|
||||
if (Open)
|
||||
return false;
|
||||
|
||||
if (!CanWeldShut)
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue