Stop Plants from DyingSolved

Hey guys,

I found the following Code to Stop Plants from dying in the discussion: https://umod.org/community/plugin-requests/37234-prevent-plants-for-dying?page=1#post-9

        void OnGrowableStateChange(GrowableEntity entity, PlantProperties.State state){
            if(state != PlantProperties.State.Dying)
                return;
            state = PlantProperties.State.Ripe;
            entity.stageAge = 0.0f;
        }​

I tried it out but it's not working. I tried also to modify it. Can someone help me?

Best regards
Lars
@ArtilOMI thanks!
Locked automatically