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

◆ OreHelper()

static void Terraria.WorldGen.OreHelper ( int X,
int Y )
inlinestatic

Definition at line 6360 of file WorldGen.cs.

6361 {
6362 for (int i = X - 1; i <= X + 1; i++)
6363 {
6364 for (int j = Y - 1; j <= Y + 1; j++)
6365 {
6366 if (Main.tile[i, j].type == 1 || Main.tile[i, j].type == 40)
6367 {
6368 Main.tile[i, j].type = 0;
6369 }
6370 }
6371 }
6372 }

References Terraria.Main.tile, System.X, and System.Y.

Referenced by Terraria.WorldGen.OrePatch().