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

◆ IsPlayerInChest()

static bool Terraria.Chest.IsPlayerInChest ( int i)
inlinestaticprivate

Definition at line 210 of file Chest.cs.

211 {
212 for (int j = 0; j < 255; j++)
213 {
214 if (Main.player[j].chest == i)
215 {
216 return true;
217 }
218 }
219 return false;
220 }

References Terraria.Main.player.

Referenced by Terraria.Chest.PutItemInNearbyChest().