chore: rebase updates

This commit is contained in:
mworzala 2025-01-24 19:47:05 -05:00
parent ce3372523e
commit b7c38fd36b
No known key found for this signature in database
GPG Key ID: B148F922E64797C7
2 changed files with 5 additions and 2 deletions

View File

@ -112,7 +112,10 @@ public final class Tag implements ProtocolObject, Keyed {
.map(DynamicRegistry.Key::namespace)
.map(registries.biome()::getId)),
INSTRUMENTS("minecraft:instrument", Registry.Resource.INSTRUMENT_TAGS,
(name, registries) -> registries.instrument().getId(DynamicRegistry.Key.of(name)));
(name, registries) -> Optional.of(DynamicRegistry.Key.of(name))
.map(DynamicRegistry.Key::namespace)
.map(registries.instrument()::getId)),
;
private static final BasicType[] VALUES = values();
private final String identifier;

View File

@ -150,7 +150,7 @@ record ComponentNetworkBufferTypeImpl() implements NetworkBufferTypeImpl<Compone
final ShadowColor shadowColor = style.shadowColor();
if (shadowColor != null) {
buffer.write(BYTE, TAG_INT);
writeUtf(buffer, "shadow_color");
buffer.write(STRING_IO_UTF8, "shadow_color");
buffer.write(INT, shadowColor.value());
}