Skip to content

Commit df5353b

Browse files
committed
Also check for hanging sign block entities
1 parent 9e8e23d commit df5353b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

common/src/main/java/com/viaversion/viabackwards/protocol/v1_21_5to1_21_4/rewriter/BlockItemPacketRewriter1_21_5.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383

8484
public final class BlockItemPacketRewriter1_21_5 extends BackwardsStructuredItemRewriter<ClientboundPacket1_21_5, ServerboundPacket1_21_4, Protocol1_21_5To1_21_4> {
8585
private static final int SIGN_BOCK_ENTITY_ID = 7;
86+
private static final int HANGING_SIGN_BOCK_ENTITY_ID = 8;
8687
private static final int SADDLE_EQUIPMENT_SLOT = 7;
8788
private static final byte SADDLED_FLAG = 4;
8889

@@ -231,7 +232,7 @@ private void sendSaddledEntityData(final UserConnection connection, final Tracke
231232

232233
private void handleBlockEntity(final UserConnection connection, final BlockEntity blockEntity) {
233234
final CompoundTag tag = blockEntity.tag();
234-
if (tag != null && blockEntity.typeId() == SIGN_BOCK_ENTITY_ID) {
235+
if (tag != null && (blockEntity.typeId() == SIGN_BOCK_ENTITY_ID || blockEntity.typeId() == HANGING_SIGN_BOCK_ENTITY_ID)) {
235236
updateSignMessages(connection, tag.getCompoundTag("front_text"));
236237
updateSignMessages(connection, tag.getCompoundTag("back_text"));
237238
}

0 commit comments

Comments
 (0)