Inventory won't restore with high level enchantments #1


  • Defect
  • Waiting
Open
Assigned to regal_owl_
  • sullytheunusual created this issue Jun 18, 2012

    I'm using LegendaryItems and EasyEnchant, which allow enchanting items to levels greater than 5.  When I try to trigger the "restoreinventory" action, here's what it says:

    java.lang.IllegalArgumentException: Enchantment level is either too low or too high (given 6, bounds are 1 to 5
        at org.bukkit.inventory.ItemStack.addEnchantment(ItemStack.java:299)
        at regalowl.actionzones.InventoryStorage.returnInventory(InventoryStorage.java:91)
        at regalowl.actionzones.Action.selectAction(Action.java:151)
        at regalowl.actionzones.RunExitAction$1.run(RunExitAction.java:32)

  • sullytheunusual added the tags New Defect Jun 18, 2012
  • regal_owl_ posted a comment Jun 22, 2012

    This should be fixed in the next build. Let me know if it works.

  • regal_owl_ removed a tag New Jun 22, 2012
  • regal_owl_ added a tag Waiting Jun 22, 2012
  • sullytheunusual posted a comment Jun 23, 2012

    @RegalOwl: Go

    The restoreinventory action works now, and it returns all my inventory. All my EasyEnchanted items are fine, but my LegendaryItems aren't legendary anymore. I had a legendary axe that was Unbreaking 10 with the Maim and Harm potion effects set to EntityDamageEvent (insta-kill), and it changed the Unbreaking enchantment to level 1 and removed the potion effects.

  • sullytheunusual removed a tag Waiting Jun 23, 2012
  • sullytheunusual added a tag Replied Jun 23, 2012
  • regal_owl_ posted a comment Jun 25, 2012

    @disciple218: Go

    Hmm, I'm not sure how LegendaryItems works. It sounds like it tracks all of its items which allows it to add custom effects. Normally an item can't have a potion effect, as far as I know. The only way to add support for that plugin would be some sort of API if it has one. I could look into that later. For now just keep legendary items items safe in chests I suppose.

  • regal_owl_ removed a tag Replied Jun 25, 2012
  • regal_owl_ added a tag Waiting Jun 25, 2012

To post a comment, please login or register a new account.