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

◆ BlockBelowMakesSandConvertIntoHardenedSand()

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

Definition at line 76620 of file WorldGen.cs.

76621 {
76622 bool result = false;
76623 if (j >= Main.maxTilesY - 1)
76624 {
76625 return false;
76626 }
76627 Tile tile = Main.tile[i, j + 1];
76628 if (tile == null)
76629 {
76630 return false;
76631 }
76632 if (!tile.nactive())
76633 {
76634 result = true;
76635 }
76636 else if (tile.type >= 0 && tile.type < TileID.Count && !Main.tileSolid[tile.type])
76637 {
76638 result = true;
76639 }
76640 return result;
76641 }
static readonly ushort Count
Definition TileID.cs:1698

References Terraria.ID.TileID.Count, Terraria.Main.maxTilesY, Terraria.Tile.nactive(), Terraria.Main.tile, Terraria.Main.tileSolid, and Terraria.Tile.type.