64991 {
64992 try
64993 {
64994 if (!
InWorld(i,
j, 10) || !Main.tile[i,
j].active() || Main.tile[i,
j].type !=
dirt)
64995 {
64996 return;
64997 }
64999 {
65002 {
65003 return;
65004 }
65005 }
65007 {
65008 return;
65009 }
65015 {
65017 }
65018 if (
num3 > Main.maxTilesX)
65019 {
65020 num3 = Main.maxTilesX;
65021 }
65023 {
65025 }
65026 if (
num5 > Main.maxTilesY)
65027 {
65028 num5 = Main.maxTilesY;
65029 }
65030 bool flag = true;
65032 {
65034 {
65035 if (!Main.tile[
k,
l].active() || !Main.tileSolid[Main.tile[
k,
l].type])
65036 {
65037 flag = false;
65038 }
65039 if (Main.tile[
k,
l].lava() && Main.tile[
k,
l].liquid > 0)
65040 {
65041 flag = true;
65042 break;
65043 }
65044 }
65045 }
65047 {
65048 return;
65049 }
65050 Main.tile[
i,
j].type = (ushort)
grass;
65051 Main.tile[
i,
j].UseBlockColors(color);
65053 {
65055 {
65056 if (!Main.tile[
m,
n].active() || Main.tile[
m,
n].type !=
dirt)
65057 {
65058 continue;
65059 }
65060 try
65061 {
65063 {
65067 }
65068 }
65069 catch
65070 {
65071 }
65072 }
65073 }
65074 }
65075 catch
65076 {
65077 }
65078 }
static bool[] CanBeClearedDuringGeneration
static bool growGrassUnderground
static bool tenthAnniversaryWorldGen
static readonly int beachDistance
static void SpreadGrass(int i, int j, int dirt=0, int grass=2, bool repeat=true, TileColorCache color=default(TileColorCache))
static bool InWorld(int x, int y, int fluff=0)