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

◆ RemoveAllFishingBobbers()

void Terraria.Player.RemoveAllFishingBobbers ( )
inline

Definition at line 31769 of file Player.cs.

31770 {
31771 for (int i = 0; i < 1000; i++)
31772 {
31773 if (Main.projectile[i].active && Main.projectile[i].owner == whoAmI && Main.projectile[i].bobber)
31774 {
31775 Main.projectile[i].Kill();
31776 }
31777 }
31778 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16

References Terraria.Main.projectile, and Terraria.Entity.whoAmI.

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

+ Here is the caller graph for this function: