From e314dcb6504e62cf35c3d75cc4e01b252ace3d2b Mon Sep 17 00:00:00 2001 From: Dominic Date: Thu, 18 Nov 2021 21:59:17 -0600 Subject: [PATCH] Fixed schematics being swappable during decryption --- UI/CodebreakerUI.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/CodebreakerUI.cs b/UI/CodebreakerUI.cs index 46f8a49f1d..a6d0021a0e 100644 --- a/UI/CodebreakerUI.cs +++ b/UI/CodebreakerUI.cs @@ -225,7 +225,7 @@ namespace CalamityMod.UI ref Item playerHandItem = ref Main.mouseItem; // Handle mouse click interactions. - if (Main.mouseLeft && Main.mouseLeftRelease) + if (Main.mouseLeft && Main.mouseLeftRelease && codebreakerTileEntity.DecryptionCountdown <= 0) { // If the player's hand item is empty and the codebreaker has a schematic, grab it. // This doesn't work if the Codebreaker is busy decrypting the schematic in question.