42049 {
42050
42051
42052 if (Main.netMode == 1)
42053 {
42054 return;
42055 }
42058 for (int i = 0; i < 40; i++)
42059 {
42061 if (item == null)
42062 {
42063 continue;
42064 }
42065 if (item.IsAir)
42066 {
42068 {
42070 }
42071 }
42072 else if (item.type == 5356 && item.stack < item.maxStack)
42073 {
42075 item.stack++;
42076 if (Main.netMode != 0)
42077 {
42078 NetMessage.SendData(32, -1, -1,
null,
chestIndex, i);
42079 }
42080 break;
42081 }
42082 }
42085 {
42087 {
42089 }
42090 else
42091 {
42094 }
42095 }
42096 if (Main.netMode != 0)
42097 {
42099 }
42101 {
42104 if (Main.netMode != 0)
42105 {
42107 }
42108 }
42110 {
42111 Vector2 pos = default(Vector2);
42114 }
42115 }
Used when attempting to add an item to a chest, but the chest is full so it spills into the world....