I'm guessing that this also doesnt work for planted corn and pumpkin.
Any way we can get this fixed?
Solved Player planted Cloth does not call OnCollectiblePickup
Discussion in 'Rust Discussion' started by Dubz, Jan 22, 2017.
-
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["*"]); }
"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"); }
"| Failed to call hook 'OnCropGather' on plugin 'GatherManager v2.2.3' (InvalidCastException: Cannot cast from source type to destination type.)" -
Wulf Community Admin
-
Awesome thanks for your work!