From 5d2282231f879e540d77c4a96c2c81ed1af22cc5 Mon Sep 17 00:00:00 2001 From: Clyybber Date: Fri, 5 Jun 2020 23:49:41 +0200 Subject: [PATCH] Cleanup --- Content.Client/Construction/ConstructionMenu.cs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Content.Client/Construction/ConstructionMenu.cs b/Content.Client/Construction/ConstructionMenu.cs index 8ab81a99f2..b5772359b1 100644 --- a/Content.Client/Construction/ConstructionMenu.cs +++ b/Content.Client/Construction/ConstructionMenu.cs @@ -261,15 +261,8 @@ namespace Content.Client.Construction private void OnEraseToggled(BaseButton.ButtonToggledEventArgs args) { - if (args.Pressed) - { - Placement.Clear(); - Placement.ToggleEraserHijacked(new ConstructionPlacementHijack(null, Owner)); - } - else - { - Placement.ToggleEraserHijacked(new ConstructionPlacementHijack(null, Owner)); - } + if (args.Pressed) Placement.Clear(); + Placement.ToggleEraserHijacked(new ConstructionPlacementHijack(null, Owner)); EraseButton.Pressed = args.Pressed; }