1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2026-01-06 15:41:50 +00:00

Update for latest MCProtocolLib

This commit is contained in:
Camotoy
2024-04-22 16:36:03 -04:00
parent dac5f69d47
commit c34f0f2c3b
2 changed files with 4 additions and 4 deletions

View File

@@ -53,13 +53,13 @@ public class ArmorItem extends Item {
ArmorTrim trim = components.get(DataComponentType.TRIM);
if (trim != null) {
// discard custom trim patterns/materials to prevent visual glitches on bedrock
if (trim.getMaterial().isCustom() || trim.getPattern().isCustom()) {
if (trim.material().isCustom() || trim.pattern().isCustom()) {
return;
}
// TODO material IDs
String material = trim.getMaterial().getCustomValue().getAssetName();
String pattern = trim.getPattern().getCustomValue().getAssetId();
String material = trim.material().custom().assetName();
String pattern = trim.pattern().custom().assetId();
NbtMapBuilder trimBuilder = NbtMap.builder();
// bedrock has an uppercase first letter key, and the value is not namespaced