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

Cannot use books on items which already have custom enchants. #208

Open
Aericio opened this issue Jul 21, 2019 · 0 comments

Comments

@Aericio
Copy link
Collaborator

commented Jul 21, 2019

Please make sure your issue complies with these guidelines:

    • Server Software must be the official PMMP w/o vanilla patching plugins (i.e. TeaSpoon)
    • Issue must have not been reported previously
    • Make sure you are on the latest version of PMMP & PiggyCustomEnchants
    • Have a detailed title, like "CustomEnchants::getName() must be..."
    • If possible, provide crashdumps/errors related to the issue.

General

If you attempt to use an enchanted book on an item which already has custom enchants, it outputs the following error (bottom).

Version:

  • PiggyCustomEnchants: 1.4.6
  • PMMP: 3.9.1

Steps to Reproduce the Issue

  1. Create an enchanted book (with any custom enchant)
  2. Attempt to apply it to an item with custom enchants already on it.

Extra Information

[19:20:08] [Server thread/DEBUG]: Failed to execute inventory transaction from Aericio: Action pocketmine\inventory\transaction\action\SlotChangeAction is not valid in the current transaction
[19:20:08] [Server thread/DEBUG]: Actions: [{"sourceType":0,"windowId":0,"sourceFlags":0,"inventorySlot":0,"oldItem":{"id":0,"count":0},"newItem":{"id":278,"nbt_b64":"CgAACgcAZGlzcGxheQkEAExvcmUIAQAAAA8ACsKnNkV4cGxvc2l2ZSBJAAkEAGVuY2gKAQAAAAICAGlkyAACAwBsdmwBAAAA"}},{"sourceType":0,"windowId":124,"sourceFlags":0,"inventorySlot":0,"oldItem":{"id":278,"nbt_b64":"CgAACgcAZGlzcGxheQkEAExvcmUIAQAAAA8ACsKnNkV4cGxvc2l2ZSBJAAkEAGVuY2gKAQAAAAICAGlkyAACAwBsdmwBAAAA"},"newItem":{"id":0,"count":0}}]
[19:20:08] [Server thread/DEBUG]: Unhandled InventoryTransactionPacket received from Aericio: HgACAAAAAKwEAv//AQoACgdkaXNwbGF5CQRMb3JlCAIPCsKnNkV4cGxvc2l2ZSBJAAkEZW5jaAoCAgJpZMgAAgNsdmwBAAAAAAAA+AEArAQC//8BCgAKB2Rpc3BsYXkJBExvcmUIAg8Kwqc2RXhwbG9zaXZlIEkACQRlbmNoCgICAmlkyAACA2x2bAEAAAAAAAA=

@Aericio Aericio added the bug label Jul 21, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.