Project-Sloth / ps-weedplanting

Project Sloth Weed Script
https://www.discord.gg/projectsloth
GNU General Public License v3.0
51 stars 43 forks source link

(PR) Fix for inability to process branch #14

Closed GitMocha closed 1 year ago

GitMocha commented 1 year ago

Fixes inability to process branches due to 'item.info.health'. - Mocha#3333

This PR fixes this, by replacing item.info.health.

Lionh34rt commented 1 year ago

https://github.com/Project-Sloth/ps-weedplanting/commit/759767eaa46b9f3e5ba99ab53b5ec4434070b23a

MonkeyWhisper commented 1 year ago

@GitMocha this fixes nothing. This change beats the purpose of having health attached to weedplanting.

Your error was spawning in branch items without itemInfo. This info is generated through the script when you harvest a plant.

A solution would be to have a fallback if item.info.health is undefined.

This is not a fix.

Yup, you're totally right, I missed that