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

◆ BlockBelowMakesSandFall()

static bool Terraria.WorldGen.BlockBelowMakesSandFall ( int i,
int j )
inlinestatic

Definition at line 76643 of file WorldGen.cs.

76644 {
76645 bool result = false;
76646 if (j >= Main.maxTilesY - 1)
76647 {
76648 return false;
76649 }
76650 Tile tile = Main.tile[i, j + 1];
76651 if (tile == null)
76652 {
76653 return false;
76654 }
76655 if (!tile.nactive())
76656 {
76657 result = true;
76658 }
76659 else if (!Main.tile[i, j + 2].nactive() && (!tile.active() || !Main.tileSolid[tile.type]))
76660 {
76661 result = true;
76662 }
76663 else if (tile.active() && tile.type == 165)
76664 {
76665 result = true;
76666 }
76667 return result;
76668 }

References Terraria.Tile.active(), Terraria.Main.maxTilesY, Terraria.Tile.nactive(), Terraria.Main.tile, Terraria.Main.tileSolid, and Terraria.Tile.type.

Referenced by Terraria.Projectile.Kill().