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

◆ FixDresserChests()

static void Terraria.IO.WorldFile.FixDresserChests ( )
inlinestaticprivate

Definition at line 3102 of file WorldFile.cs.

3103 {
3104 for (int i = 0; i < Main.maxTilesX; i++)
3105 {
3106 for (int j = 0; j < Main.maxTilesY; j++)
3107 {
3108 Tile tile = Main.tile[i, j];
3109 if (tile.active() && tile.type == 88 && tile.frameX % 54 == 0 && tile.frameY % 36 == 0)
3110 {
3111 Chest.CreateChest(i, j);
3112 }
3113 }
3114 }
3115 }

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

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