Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent exception when retrieving enchantments #4297

Merged
merged 1 commit into from
Jul 1, 2021

Conversation

triagonal
Copy link
Member

Information

This PR prevents an IllegalArgumentException from bubbling up in Enchantments.getByName, allowing a nicer error message (enchantmentNotFound tl key) to be displayed instead of "Invalid key. Must be [a-z0-9/._-]". Also fixes tab-complete spam in linked issue.

Fixes #4291

Details

Environments tested:

OS: Windows 10 20H2
Java version: openjdk 16.0.1 2021-04-20

  • Most recent Paper version (git-Paper-68 (MC: 1.17))

@triagonal triagonal added module: main Issues or PRs for the main Essentials module type: bugfix PRs that fix bugs in EssentialsX. labels Jul 1, 2021
@JRoy JRoy merged commit 94c509b into EssentialsX:2.x Jul 1, 2021
@triagonal triagonal deleted the fix/enchantments branch July 1, 2021 19:22
@pop4959 pop4959 added this to the 2.19.0 milestone Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: main Issues or PRs for the main Essentials module type: bugfix PRs that fix bugs in EssentialsX.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tab completion issue ?
3 participants