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."); }
We use essential cookies to make this site work, and optional cookies to enhance your experience.