mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Fix: Allow items to be worn as hats if their Java base items also allow it (#4885)
This commit is contained in:
parent
b248abf495
commit
1dd9ba3fb6
1 changed files with 7 additions and 1 deletions
|
@ -199,7 +199,13 @@ public class CustomItemRegistryPopulator {
|
|||
computeThrowableProperties(componentBuilder);
|
||||
}
|
||||
|
||||
computeRenderOffsets(false, customItemData, componentBuilder);
|
||||
// Hardcoded on Java, and should extend to the custom item
|
||||
boolean isHat = (javaItem.equals(Items.SKELETON_SKULL) || javaItem.equals(Items.WITHER_SKELETON_SKULL)
|
||||
|| javaItem.equals(Items.CARVED_PUMPKIN) || javaItem.equals(Items.ZOMBIE_HEAD)
|
||||
|| javaItem.equals(Items.PIGLIN_HEAD) || javaItem.equals(Items.DRAGON_HEAD)
|
||||
|| javaItem.equals(Items.CREEPER_HEAD) || javaItem.equals(Items.PLAYER_HEAD)
|
||||
);
|
||||
computeRenderOffsets(isHat, customItemData, componentBuilder);
|
||||
|
||||
componentBuilder.putCompound("item_properties", itemProperties.build());
|
||||
builder.putCompound("components", componentBuilder.build());
|
||||
|
|
Loading…
Reference in a new issue