Resource icon

Tree Harvest System (Stand-alone) 1.1

Fixed the error Dramoor found in TreeResources.cs.

If you already have this system and just want to fix the one line it is around line 78.

Change it from:

Code:
            else if (this.cookable)
            {
                if (IsHeatSource(targ))
                {
                    Container pack = from.Backpack;
                    if (!(pack == null || pack.Deleted))
                        Cook(this, from,
                            from.CheckSkill(brewSkill, 0.0, 100.0)
                                ? Utility.RandomBool()
                                    ? HarvestSuccessRating.PartialSuccess
                                    : HarvestSuccessRating.Success
                                : HarvestSuccessRating.Failure, grindResult, pack);
                }
                else
                    from.SendMessage("Try using this on a heat source.");
            }

to this:

Code:
            else if (this.cookable)
            {
                if (IsHeatSource(targ))
                {
                    Container pack = from.Backpack;
                    if (!(pack == null || pack.Deleted))
                        Cook(this, from,
                            from.CheckSkill(brewSkill, 0.0, 100.0)
                                ? Utility.RandomBool()
                                    ? HarvestSuccessRating.PartialSuccess
                                    : HarvestSuccessRating.Success
                                : HarvestSuccessRating.Failure, cookResult, pack);
                }
                else
                    from.SendMessage("Try using this on a heat source.");
            }
  • Like
Reactions: Greed

Active Shards

Donations

Total amount
$80.00
Goal
$1,000.00
Back