From c049852486102021cf6832936157992691e120ee Mon Sep 17 00:00:00 2001 From: little-meow-meow <204685920+little-meow-meow@users.noreply.github.com> Date: Mon, 16 Jun 2025 19:39:04 -0700 Subject: [PATCH] fix: no longer accidentally rotate held items (#38331) Signed-off-by: little-meow-meow <204685920+little-meow-meow@users.noreply.github.com> --- .../UserInterface/Systems/Storage/StorageUIController.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Content.Client/UserInterface/Systems/Storage/StorageUIController.cs b/Content.Client/UserInterface/Systems/Storage/StorageUIController.cs index 5e6779193b..a7e130ccd6 100644 --- a/Content.Client/UserInterface/Systems/Storage/StorageUIController.cs +++ b/Content.Client/UserInterface/Systems/Storage/StorageUIController.cs @@ -225,6 +225,10 @@ public sealed class StorageUIController : UIController, IOnSystemChanged().GetActiveHandEntity() == null) return; + // Do not rotate items unless we are either dragging them or hovering over a storage window. + if (DraggingGhost is null && UIManager.CurrentlyHovered is not StorageWindow) + return; + //clamp it to a cardinal. DraggingRotation = (DraggingRotation + Math.PI / 2f).GetCardinalDir().ToAngle(); if (DraggingGhost != null) -- 2.51.2