mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-11-22 12:16:21 +01:00
Convert attributes in item hover event
This commit is contained in:
parent
f2fcc9d02f
commit
1876b9bb95
@ -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
|
||||||
|
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user