Skip to content

Harvest items compatibility changes#1270

Open
HoundAkragth wants to merge 1 commit intoPokecube-Development:1.21.1from
HoundAkragth:1.21.1-berry-compatibility-changes
Open

Harvest items compatibility changes#1270
HoundAkragth wants to merge 1 commit intoPokecube-Development:1.21.1from
HoundAkragth:1.21.1-berry-compatibility-changes

Conversation

@HoundAkragth
Copy link
Contributor

Modified the IHarvester to have an isAvailable function and then used it for checking if the item was gatherable in hasStuff. This allows mod compatibility to write a new IHarvester and register it instead of being blocked at the hasStuff, as if the item is listed in the harvest_extra tag right now, that will just use the default harvest function which may be undesirable.

Moved the drop list to be retrieved before the block is broken, as in some cases the block will drop nothing, likely because the block will be air.

Modified the IHarvester to have an isAvailable function and then used
it for checking if the item was gatherable in hasStuff. This allows
mod compatibility to write a new IHarvester and register it instead of
being blocked at the hasStuff, as if the item is listed the
harvest_extra tag, that will just use the default harvest function
which may be undesirable.

Moved the drop list to be retrieved before the block is broken, as in
some cases the block will drop nothing, likely because the block will
be air.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant