107 {
108 if (tile.liquid <= 0)
109 {
110 return;
111 }
112 if (tile.lava())
113 {
114 float num = 0.55f;
115 num += (float)(270 - Main.mouseTextColor) / 900f;
116 if (lightColor.X < num)
117 {
118 lightColor.X = num;
119 }
120 if (lightColor.Y < num)
121 {
122 lightColor.Y = num * 0.6f;
123 }
124 if (lightColor.Z < num)
125 {
126 lightColor.Z = num * 0.2f;
127 }
128 }
129 else if (tile.shimmer())
130 {
131 float num2 = 0.7f;
132 float num3 = 0.7f;
133 num2 += (float)(270 - Main.mouseTextColor) / 900f;
134 num3 += (float)(270 - Main.mouseTextColor) / 125f;
135 if (lightColor.X < num2)
136 {
137 lightColor.X = num2 * 0.6f;
138 }
139 if (lightColor.Y < num3)
140 {
141 lightColor.Y = num3 * 0.25f;
142 }
143 if (lightColor.Z < num2)
144 {
145 lightColor.Z = num2 * 0.9f;
146 }
147 }
148 }