Convert attributes in item hover event

This commit is contained in:
Nassim Jahnke 2024-09-21 12:47:40 +02:00
parent f2fcc9d02f
commit 1876b9bb95
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F
2 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ public final class BlockItemPacketRewriter1_21_2 extends BackwardsStructuredItem
wrapper.passthrough(Types.DOUBLE); // Center Y wrapper.passthrough(Types.DOUBLE); // Center Y
wrapper.passthrough(Types.DOUBLE); // Center Z wrapper.passthrough(Types.DOUBLE); // Center Z
// TODO // The server will already send block changes separately
wrapper.write(Types.FLOAT, 0F); // Power wrapper.write(Types.FLOAT, 0F); // Power
wrapper.write(Types.VAR_INT, 0); // No blocks affected wrapper.write(Types.VAR_INT, 0); // No blocks affected

View File

@ -38,7 +38,7 @@ public final class ComponentRewriter1_21_2 extends TranslatableRewriter<Clientbo
return; return;
} }
// TODO attribute types com.viaversion.viaversion.protocols.v1_21to1_21_2.rewriter.ComponentRewriter1_21_2.convertAttributes(componentsTag, protocol.getMappingData().getAttributeMappings());
final CompoundTag instrument = TagUtil.getNamespacedCompoundTag(componentsTag, "instrument"); final CompoundTag instrument = TagUtil.getNamespacedCompoundTag(componentsTag, "instrument");
if (instrument != null) { if (instrument != null) {