Disallow welding of open lockers (#1011)

Co-authored-by: boiled water <hex0ffender@protonmail.com>
This commit is contained in:
boiled-water-tsar
2020-05-28 12:31:16 +02:00
committed by GitHub
parent 12b5f3ebc5
commit 0e2f4fda31

View File

@@ -367,6 +367,10 @@ namespace Content.Server.GameObjects.Components
public bool InteractUsing(InteractUsingEventArgs eventArgs) public bool InteractUsing(InteractUsingEventArgs eventArgs)
{ {
if (Open)
return false;
if (!CanWeldShut) if (!CanWeldShut)
return false; return false;