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

◆ FixHearts()

static void Terraria.WorldGen.FixHearts ( )
inlinestatic

Definition at line 44277 of file WorldGen.cs.

44278 {
44279 for (int i = 0; i < Main.maxTilesX; i++)
44280 {
44281 for (int j = 0; j < Main.maxTilesY; j++)
44282 {
44283 Tile tile = Main.tile[i, j];
44284 if (tile.active() && tile.type == 12 && tile.frameX == 0 && tile.frameY == 0)
44285 {
44286 FixHeart(i, j);
44287 }
44288 }
44289 }
44290 }
static void FixHeart(int i, int j)

References Terraria.Tile.active(), Terraria.Tile.frameX, Terraria.Tile.frameY, Terraria.Main.maxTilesX, Terraria.Main.maxTilesY, Terraria.Main.tile, and Terraria.Tile.type.

Referenced by Terraria.IO.WorldFile.LoadWorldTiles().