Skip to content

Commit f5ae380

Browse files
committed
tml fix
1 parent 5d09aa6 commit f5ae380

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Items/Weapons/Clickers/ExampleClickerWithEffect.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public override void SetStaticDefaults()
3232
//Here we register a click effect which we reference in SetDefaults through AddEffect
3333
string uniqueName = ClickerCompat.RegisterClickEffect(Mod, "ExampleEffect", "Mini Clickers", "Creates 5 Mini Clickers around the cursor for 20% damage", 6, Color.Red, delegate (Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, int type, int damage, float knockBack)
3434
{
35-
SoundEngine.PlaySound(SoundID.Chat, (int)position.X, (int)position.Y, -1);
35+
SoundEngine.PlaySound(SoundID.Chat, position);
3636
for (int i = 0; i < 5; i++)
3737
{
3838
Projectile.NewProjectile(source, position + 20 * Vector2.UnitX.RotatedByRandom(MathHelper.TwoPi), Vector2.Zero, ModContent.ProjectileType<MiniClicker>(), (int)(damage * 0.2f), 0f, Main.myPlayer);

0 commit comments

Comments
 (0)