Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ RemoveAllFishingBobbers()

void Terraria.Player.RemoveAllFishingBobbers ( )
inline

Definition at line 31304 of file Player.cs.

31305 {
31306 for (int i = 0; i < 1000; i++)
31307 {
31308 if (Main.projectile[i].active && Main.projectile[i].owner == whoAmI && Main.projectile[i].bobber)
31309 {
31310 Main.projectile[i].Kill();
31311 }
31312 }
31313 }

References Terraria.Main.projectile.

Referenced by Terraria.GameContent.PlayerSleepingHelper.StartSleeping().