1. I'm guessing that this also doesnt work for planted corn and pumpkin.
    Any way we can get this fixed?
     
  2. Thanks for that.

    I'm trying to *fix* GatherManager the cheap and nasty way for my server:

    I've added the code:
    where "PickupResourceModifiers" is the config for all the other pickup items:

    Code:
            private void OnCropGather(PlantEntity plant, Item item, BasePlayer player)
            {
                item.amount = (int)(item.amount * PickupResourceModifiers["*"]);
            }
    I'm getting an error of:
    "Failed to call hook 'OnCropGather' on plugin 'GatherManager v2.2.3' (InvalidCastException: Cannot cast from source type to destination type.)"
    [DOUBLEPOST=1485131085][/DOUBLEPOST]Further to this i tested with:

    Code:
            private void OnCropGather(PlantEntity plant, Item item, BasePlayer player)
            {
                Puts("Crop Gather Works");
            }
    Also getting:
    "| Failed to call hook 'OnCropGather' on plugin 'GatherManager v2.2.3' (InvalidCastException: Cannot cast from source type to destination type.)"
     
  3. Wulf

    Wulf Community Admin

    Looks like we had an argument wrong in the hook. Should be fixed in the next Oxide snapshot build.
     
  4. Awesome thanks for your work!