Nice and simple but effective. Regrow is a very useful mod if you like more fruit than just apples.
I highly recommend this mod.
Bothered by vanishing fruits around your favourite place after picking some oranges or other non-apple fruit for food?
Just install this mod and forget about it. Any fruit picked from a tree will regrow after some time. Simple as that and a great effect. Keeps your avatar healthy and your world colourful.
Certainly server admins will like the streamlined design of the code.