Paper icon indicating copy to clipboard operation
Paper copied to clipboard

Cant edit anvil via paper API

Open InseiderHD opened this issue 3 years ago • 9 comments

What behaviour is expected:

What you expected to see paper api : open the anvil and use it ingame

What behaviour is observed:

What you actually saw i was kicked from the server when i use it: Packet processing error . And i saw a error in the console: https://pastebin.pl/view/49f4d75a

Steps/models to reproduce:

This may include a build schematic, a video, or detailed instructions to help reconstruct the issue open a anvil with the paper api, code: player.openInventory(Bukkit.createInventory(player, InventoryType.ANVIL)); use it and you see you are kicked because Packet procressing error. and in the console is a big error

Plugin list:

A list of your plugins https://i.imgur.com/f8edd3y.png -essentials is my plugin!

Paper version:

Paste the output of running /version on your server WITH the Minecraft version. latest is not a version; we require the output of /version so we can properly track down the issue. https://i.imgur.com/bXFo6ac.png

InseiderHD avatar Mar 01 '21 11:03 InseiderHD

I'm almost positive this is fixed, and if it isn't it will be fixed by https://github.com/PaperMC/Paper/pull/7265

Machine-Maker avatar Jan 14 '22 09:01 Machine-Maker

Testing this there definitely seems to be weird behavior still, even tho it no longer kicks the player.

https://user-images.githubusercontent.com/23108066/183273466-958e142d-f3dd-47c5-8d7d-13b51dac0ce5.mp4

Owen1212055 avatar Aug 07 '22 03:08 Owen1212055

Can probably reproduce this with all container that has specific methods like player.openAnvil/Workbench... The brewing stand, furnace, blast furnace, smoker menu are also broken and has no specific method to fix that The beacon menu has its translation button broken and is broken (no specific method) The enderchest menu doesn't save items (no specific method) And in the bukkit javadoc of Bukkit#createInventory it say that workbench and enchanting table are broken

Also note that you can duplicate item in this bugged inventory

Lulu13022002 avatar Aug 07 '22 18:08 Lulu13022002

I think all of those things are fixed, or will be fixed when I continue to work on the linked PR (https://github.com/PaperMC/Paper/pull/7265)

Machine-Maker avatar Aug 08 '22 05:08 Machine-Maker