1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-19 23:09:29 +00:00

Fix: right-click events for custom skulls

Resolves https://github.com/GeyserMC/Geyser/issues/5923
This commit is contained in:
onebeastchris
2025-10-26 19:24:22 +01:00
parent 5e7ce45d0b
commit 75f3f2c6ce

View File

@@ -530,10 +530,10 @@ public final class ItemTranslator {
} }
if (mapping.getJavaItem().equals(Items.PLAYER_HEAD)) { if (mapping.getJavaItem().equals(Items.PLAYER_HEAD)) {
/*CustomSkull customSkull = getCustomSkull(itemStack.getComponent(DataComponentTypes.PROFILE)); CustomSkull customSkull = getCustomSkull(itemStack.getComponent(DataComponentTypes.PROFILE));
if (customSkull != null) { if (customSkull != null) {
itemDefinition = session.getItemMappings().getCustomBlockItemDefinitions().get(customSkull.getCustomBlockData()); itemDefinition = session.getItemMappings().getCustomBlockItemDefinitions().get(customSkull.getCustomBlockData());
}*/ // TODO }
} }
ItemDefinition definition = CustomItemTranslator.getCustomItem(itemStack.getComponents(), mapping); ItemDefinition definition = CustomItemTranslator.getCustomItem(itemStack.getComponents(), mapping);