diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/v1_21_9to1_21_7/Protocol1_21_9To1_21_7.java b/common/src/main/java/com/viaversion/viabackwards/protocol/v1_21_9to1_21_7/Protocol1_21_9To1_21_7.java index 099ff6ed..52578cc2 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/v1_21_9to1_21_7/Protocol1_21_9To1_21_7.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/v1_21_9to1_21_7/Protocol1_21_9To1_21_7.java @@ -185,12 +185,19 @@ protected void registerPackets() { } }); + registerServerbound(ServerboundPackets1_21_6.DEBUG_SAMPLE_SUBSCRIPTION, wrapper -> { + final int sampleType = wrapper.read(Types.VAR_INT); + if (sampleType == 0) { // TICK_TIME + wrapper.write(Types.VAR_INT, 1); // Subscription count + wrapper.write(Types.VAR_INT, 0); // Subscription registry id (DEDICATED_SERVER_TICK_TIME) + } + }); + cancelClientbound(ClientboundPackets1_21_9.DEBUG_BLOCK_VALUE); cancelClientbound(ClientboundPackets1_21_9.DEBUG_CHUNK_VALUE); cancelClientbound(ClientboundPackets1_21_9.DEBUG_ENTITY_VALUE); cancelClientbound(ClientboundPackets1_21_9.DEBUG_EVENT); cancelClientbound(ClientboundPackets1_21_9.GAME_EVENT_TEST_HIGHLIGHT_POS); - cancelServerbound(ServerboundPackets1_21_6.DEBUG_SAMPLE_SUBSCRIPTION); } @Override