Disallow welding of open lockers (#1011)
Co-authored-by: boiled water <hex0ffender@protonmail.com>
This commit is contained in:
committed by
GitHub
parent
12b5f3ebc5
commit
0e2f4fda31
@@ -367,6 +367,10 @@ namespace Content.Server.GameObjects.Components
|
||||
|
||||
public bool InteractUsing(InteractUsingEventArgs eventArgs)
|
||||
{
|
||||
|
||||
if (Open)
|
||||
return false;
|
||||
|
||||
if (!CanWeldShut)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user