44096 {
44098 {
44099 return;
44100 }
44101 if (!Main.GamepadDisableCursorItemIcon)
44102 {
44104 Main.ItemIconCacheUpdate(
sItem.type);
44105 }
44107 {
44108 return;
44109 }
44111 {
44115 {
44117 {
44118 if (Main.tile[i,
j].liquidType() == num)
44119 {
44120 num2 += Main.tile[
i,
j].liquid;
44121 }
44122 }
44123 }
44125 {
44126 return;
44127 }
44130 {
44132 {
44135 }
44137 {
44140 }
44141 else
44142 {
44144 {
44145 return;
44146 }
44149 }
44150 }
44158 if (Main.netMode == 1)
44159 {
44161 }
44162 else
44163 {
44165 }
44167 {
44168 return;
44169 }
44171 {
44173 {
44175 {
44176 int num4 = Main.tile[
k,
l].liquid;
44178 {
44180 }
44182 Main.tile[
k,
l].liquid -= (byte)
num4;
44183 Main.tile[
k,
l].liquidType(liquidType);
44184 if (Main.tile[
k,
l].liquid == 0)
44185 {
44186 Main.tile[
k,
l].lava(lava:
false);
44188 }
44190 if (Main.netMode == 1)
44191 {
44192 NetMessage.sendWater(
k,
l);
44193 }
44194 else
44195 {
44196 Liquid.AddWater(
k,
l);
44197 }
44198 }
44199 }
44200 }
44201 }
44202 else
44203 {
44205 {
44206 return;
44207 }
44208 if (
sItem.type == 207 ||
sItem.type == 4820)
44209 {
44211 {
44216 if (
sItem.type != 4820)
44217 {
44220 }
44222 if (Main.netMode == 1)
44223 {
44225 }
44226 }
44227 }
44228 else if (
sItem.type == 206 ||
sItem.type == 3031)
44229 {
44231 {
44236 if (
sItem.type != 3031)
44237 {
44240 }
44242 if (Main.netMode == 1)
44243 {
44245 }
44246 }
44247 }
44248 else if (
sItem.type == 1128 ||
sItem.type == 5302)
44249 {
44251 {
44256 if (
sItem.type != 5302)
44257 {
44260 }
44262 if (Main.netMode == 1)
44263 {
44265 }
44266 }
44267 }
44269 {
44275 if (Main.netMode == 1)
44276 {
44278 }
44279 }
44280 }
44281 }
static void PlaySound(int type, Vector2 position, int style=1)
void ApplyItemTime(Item sItem)
bool cursorItemIconEnabled
void PutItemInInventoryFromItemUsage(int type, int theSelectedItem=-1)