From 4e2e12d5237c910cf8f49815c6b5de607d630de4 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Mon, 4 May 2020 23:50:42 -0400 Subject: [PATCH] fixed stealth again for real i swear --- CalPlayer/CalamityPlayer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 73c55c3cf8..e7b5fc9ee5 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -9296,7 +9296,7 @@ namespace CalamityMod.CalPlayer bool isPickaxe = it.pick > 0; bool isAxe = it.axe > 0; bool isHammer = it.hammer > 0; - bool isPlaced = it.createTile != 0; + bool isPlaced = it.createTile != -1; bool hasNonWeaponFunction = isPickaxe || isAxe || isHammer || isPlaced; bool playerUsingWeapon = hasDamage && hasHitboxes && !hasNonWeaponFunction; if (!stealthStrikeThisFrame && player.itemAnimation == player.itemAnimationMax - 1 && playerUsingWeapon)