Skip to content

Commit e1202c7

Browse files
committed
Add Conversion/Fix For Disconnect
1 parent 4f13bdc commit e1202c7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/btw/lowercase/viasnapshot/protocol/v15w31ato1_8/rewriter/PacketRewriter15w31a.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,12 @@ protected void register() {
136136
}
137137
});
138138

139+
protocol.registerClientbound(ClientboundPackets1_8.DISCONNECT, new PacketHandlers() {
140+
public void register() {
141+
map(Types.STRING, Protocol1_8To1_9.STRING_TO_JSON);
142+
}
143+
});
144+
139145
// TODO: Issues in 1.21?
140146
protocol.registerClientbound(ClientboundPackets1_8.TAB_LIST, new PacketHandlers() {
141147
public void register() {

0 commit comments

Comments
 (0)