PaperMC / Paper

The most widely used, high performance Minecraft server that aims to fix gameplay and mechanics inconsistencies
https://papermc.io/
Other
10.05k stars 2.34k forks source link

Can't set item in input slot of Stonecutter Inventory #10621

Open HarpanW opened 7 months ago

HarpanW commented 7 months ago

Expected behavior

Stone in stonecutter input slot

Observed/Actual behavior

No item in stonecutter input slot

Steps/models to reproduce

public void openStonecutterGUI(Player player) { Inventory inventory = Bukkit.createInventory(null, InventoryType.STONECUTTER, "text"); ItemStack stone = new ItemStack(Material.STONE); inventory.setItem(0, stone); player.openInventory(inventory); }

Plugin and Datapack List

no additional

Paper version

This server is running Paper version git-Paper-334 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: 47b2c18)\nYou are 162 version(s) behind\nDownload the new version at: https://papermc.io/downloads/paper

Other

i have also tried setting the item after the inventory is opened, same issue:

public void openStonecutterGUI(Player player) { Inventory inventory = Bukkit.createInventory(null, InventoryType.STONECUTTER, "text"); ItemStack stone = new ItemStack(Material.STONE); player.openInventory(inventory); inventory.setItem(0, stone); }

powercasgamer commented 7 months ago

Can reproduce this on 1.20.5 with commit https://github.com/PaperMC/Paper/commit/8f7ac62905dbeeef1ad000a44c7dd035d4e115b0

HarpanW commented 7 months ago

Might be hard coded by the client, cant get any other crafting stations to display items except for ones like furnace and brewing stand (that actually have containers on the server)