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

◆ CheckDye()

static void Terraria.WorldGen.CheckDye ( int x,
int y )
inlinestatic

Definition at line 47906 of file WorldGen.cs.

47907 {
47908 switch (Main.tile[x, y].frameX / 34)
47909 {
47910 case 7:
47911 if (!SolidTile(x, y - 1))
47912 {
47913 KillTile(x, y);
47914 }
47915 break;
47916 case 6:
47917 if (!Main.tile[x, y + 1].nactive() || Main.tile[x, y + 1].type != 80)
47918 {
47919 KillTile(x, y);
47920 }
47921 break;
47922 default:
47923 if (!SolidTile(x, y + 1))
47924 {
47925 KillTile(x, y);
47926 }
47927 break;
47928 }
47929 }
static void KillTile(int i, int j, bool fail=false, bool effectOnly=false, bool noItem=false)

References Terraria.Enums.SolidTile, and Terraria.Main.tile.