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

◆ GetTileSafely() [1/4]

static Tile Terraria.Framing.GetTileSafely ( int i,
int j )
inlinestatic

Definition at line 444 of file Framing.cs.

445 {
446 if (!WorldGen.InWorld(i, j))
447 {
448 return default(Tile);
449 }
450 Tile tile = Main.tile[i, j];
451 if (tile == null)
452 {
453 tile = (Main.tile[i, j] = default(Tile));
454 }
455 return tile;
456 }

References Terraria.WorldGen.InWorld(), and Terraria.Main.tile.

+ Here is the call graph for this function: