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

[XEnchantment] - NoSuchFieldError #253

Closed
ImYenil opened this issue May 14, 2024 · 1 comment
Closed

[XEnchantment] - NoSuchFieldError #253

ImYenil opened this issue May 14, 2024 · 1 comment
Assignees
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@ImYenil
Copy link

ImYenil commented May 14, 2024

Description
When using XSeries 10.0.0 on Spigot 1.8.8, XEnchantment does not work properly and gives this stack trace: https://pastebin.com/VzU94YFc

public ItemBuilder enchant(String enchantment, int level) {
    Enchantment xEnchantment = XEnchantment.matchXEnchantment(enchantment).orElse(XEnchantment.UNBREAKING).getEnchant();

    itemMeta.addEnchant(xEnchantment, level, true);

    return this;
}

Version
XSeries 10.0.0, Paper 1.8.8

@ImYenil ImYenil added the bug Something isn't working label May 14, 2024
@datatags
Copy link
Contributor

That code snippet works fine for me on those versions, are you sure you're shading and relocating XSeries properly in your plugin? Maybe another plugin on your server has shaded an older version of XSeries without relocation, so the server uses the older version

@CryptoMorin CryptoMorin added the invalid This doesn't seem right label May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants