From 7b11f847d95efca8341e4582f9760cc3181c1e61 Mon Sep 17 00:00:00 2001 From: Doug Benham Date: Sun, 29 May 2022 17:19:39 -0700 Subject: [PATCH] SHIFT+Click on inventory item during crafting deposits the item into storage instead of depositing as a station Moving items between inventory and storage is a very common task and needs as many ways to do it as possible. Moving items into station slots can require a few more clicks since it is such a rare task. --- StoragePlayer.cs | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/StoragePlayer.cs b/StoragePlayer.cs index a7e41cba..32e8fabf 100644 --- a/StoragePlayer.cs +++ b/StoragePlayer.cs @@ -186,32 +186,15 @@ public override bool ShiftClickSlot(Item[] inventory, int context, int slot) return false; int oldType = item.type; int oldStack = item.stack; - if (StorageCrafting()) + + if (Main.netMode == NetmodeID.SinglePlayer) { - if (false) - { - if (Main.netMode == NetmodeID.SinglePlayer) - { - GetCraftingAccess().TryDepositStation(item); - } - else - { - NetHelper.SendDepositStation(GetCraftingAccess().ID, item); - item.SetDefaults(0, true); - } - } + GetStorageHeart().DepositItem(item); } else { - if (Main.netMode == NetmodeID.SinglePlayer) - { - GetStorageHeart().DepositItem(item); - } - else - { - NetHelper.SendDeposit(GetStorageHeart().ID, item); - item.SetDefaults(0, true); - } + NetHelper.SendDeposit(GetStorageHeart().ID, item); + item.SetDefaults(0, true); } if (item.type != oldType || item.stack != oldStack)