Fixed Reed Blowgun's held item not adjusting for player rotation

This commit is contained in:
CongratsIsTrash committed 2025-03-05 00:56:16 -05:00
1 parent 7ed945d905
commit 1df6063781
1 file changed
+1 -1
+1 -1
View File
@@ -65,7 +65,7 @@ namespace CalamityMod.Items.Weapons.Ranged
Vector2 playerMouth = getPlayerMouth(player);
Vector2 playerToCursor = (player.Calamity().mouseWorld - playerMouth).SafeNormalize(Vector2.UnitX);
float pointingDirection = (playerToCursor.ToRotation() + MathHelper.PiOver4 / 3f * player.direction * player.gravDir);
float pointingDirection = (playerToCursor.ToRotation() + MathHelper.PiOver4 / 3f * player.direction * player.gravDir) - player.fullRotation;
CalamityUtils.CleanHoldStyle(player, pointingDirection, playerMouth, new Vector2(50, 18), new Vector2(-23, 6));
}