Skip to content

Revert part of ffbe97c642 - #1109

Merged
TonytheMacaroni merged 1 commit into
TheComputerGeek2:mainfrom
JasperLorelai:main
Oct 5, 2026
Merged

TonytheMacaroni merged 1 commit into
TheComputerGeek2:mainfrom
JasperLorelai:main

Conversation

@JasperLorelai

Copy link
Copy Markdown
Collaborator

I didn't check the implementation details of Player#setCooldown(ItemStack, ticks) when adding magic item support instead of leaving it as material support.

The ItemStack method takes the item's cooldown group to apply the cooldown, it doesn't match items in any other way. It could be misleading, as I was misled, to leave Magic Item support, especially since we already have a "key" option for explicit cooldown groups. Users would probably favour that instead of configuring an item there, then having to double-check its config for its cooldown group.

NOTE: Magic Item support was added in Beta 19.

I didn't check the implementation details of "Player#setCooldown(ItemStack, ticks)" when adding magic item support instead of leaving it material support.

The ItemStack method takes the item's cooldown group to apply the cooldown, it doesn't match items in any other way. It could be misleading, as I was misled, to leave Magic Item support, especially since we already have a "key" option for explicit cooldown groups. Users would probably favour that instead of configuring an item there, then having to double-check its config for its cooldown group.
@JasperLorelai JasperLorelai changed the title revert: Parts of ffbe97c642 Revert part of ffbe97c642 Sep 30, 2026
@TonytheMacaroni
TonytheMacaroni merged commit 8056730 into TheComputerGeek2:main Oct 5, 2026
1 check passed
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.

2 participants