public static void performSwitchHeldItem(long id, byte bigCraftable, int index) { if (index == -1) { Game1.otherFarmers[id].showNotCarrying(); if (Game1.otherFarmers[id].ActiveObject != null) { Game1.otherFarmers[id].ActiveObject.actionWhenStopBeingHeld(Game1.otherFarmers[id]); } Game1.otherFarmers[id].items[Game1.otherFarmers[id].CurrentToolIndex] = null; } else { Game1.otherFarmers[id].showCarrying(); Game1.otherFarmers[id].ActiveObject = ((bigCraftable == 1) ? new Object(Vector2.Zero, index, false) : new Object(Vector2.Zero, index, 1)); } if (Game1.IsServer) { MultiplayerUtility.sendSwitchHeldItemMessage(index, bigCraftable, id); } }