File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
common/src/main/java/com/viaversion/viabackwards/protocol/v1_21_9to1_21_7 Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -185,12 +185,19 @@ protected void registerPackets() {
185
185
}
186
186
});
187
187
188
+ registerServerbound (ServerboundPackets1_21_6 .DEBUG_SAMPLE_SUBSCRIPTION , wrapper -> {
189
+ final int sampleType = wrapper .read (Types .VAR_INT );
190
+ if (sampleType == 0 ) { // TICK_TIME
191
+ wrapper .write (Types .VAR_INT , 1 ); // Subscription count
192
+ wrapper .write (Types .VAR_INT , 0 ); // Subscription registry id (DEDICATED_SERVER_TICK_TIME)
193
+ }
194
+ });
195
+
188
196
cancelClientbound (ClientboundPackets1_21_9 .DEBUG_BLOCK_VALUE );
189
197
cancelClientbound (ClientboundPackets1_21_9 .DEBUG_CHUNK_VALUE );
190
198
cancelClientbound (ClientboundPackets1_21_9 .DEBUG_ENTITY_VALUE );
191
199
cancelClientbound (ClientboundPackets1_21_9 .DEBUG_EVENT );
192
200
cancelClientbound (ClientboundPackets1_21_9 .GAME_EVENT_TEST_HIGHLIGHT_POS );
193
- cancelServerbound (ServerboundPackets1_21_6 .DEBUG_SAMPLE_SUBSCRIPTION );
194
201
}
195
202
196
203
@ Override
You can’t perform that action at this time.
0 commit comments