Skip to content

Conversation

@MillionthOdin16
Copy link
Contributor

Add exception handling for NoSuchMethodError in the getEnchantmentLevel method of the NewEcoFastItemStack class.

  • Import Logger class for logging purposes.
  • Add a try-catch block to the getEnchantmentLevel method to handle NoSuchMethodError exceptions.
  • Log an error message if a NoSuchMethodError is caught.
  • Return 0 as the default enchantment level if a NoSuchMethodError is caught.

Auxilor/libreforge#176 (comment)

Add exception handling for `NoSuchMethodError` in the `getEnchantmentLevel` method of the `NewEcoFastItemStack` class.

* Import `Logger` class for logging purposes.
* Add a try-catch block to the `getEnchantmentLevel` method to handle `NoSuchMethodError` exceptions.
* Log an error message if a `NoSuchMethodError` is caught.
* Return 0 as the default enchantment level if a `NoSuchMethodError` is caught.

Auxilor/libreforge#176 (comment)
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