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

◆ BlockBelowMakesSandFall()

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

Definition at line 80296 of file WorldGen.cs.

80297 {
80298 bool result = false;
80299 if (j >= Main.maxTilesY - 1)
80300 {
80301 return false;
80302 }
80303 Tile tile = Main.tile[i, j + 1];
80304 if (tile == null)
80305 {
80306 return false;
80307 }
80308 if (!tile.nactive())
80309 {
80310 result = true;
80311 }
80312 else if (!Main.tile[i, j + 2].nactive() && (!tile.active() || !Main.tileSolid[tile.type]))
80313 {
80314 result = true;
80315 }
80316 else if (tile.active() && tile.type == 165)
80317 {
80318 result = true;
80319 }
80320 return result;
80321 }

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: