Put back oshiho3's fix, modified for new parameters

This is https://github.com/Growstuff/growstuff/commit/aa028db2dc649d90a0f2090da1904ad35bbe7c6d modified for the new type/id parameters (for planting versus harvest)