Skip to content

Commit 8c4ff7e

Browse files
Remove fix which got merged into MCStructs (ViaVersion#3836)
1 parent 4c7729e commit 8c4ff7e

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

common/src/main/java/com/viaversion/viaversion/protocols/protocol1_9to1_8/Protocol1_9To1_8.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,7 @@ protected void registerPackets() {
9393
return;
9494
}
9595

96-
final String reason = wrapper.read(Type.STRING);
97-
try {
98-
STRING_TO_JSON.write(wrapper, reason);
99-
} catch (Exception e) {
100-
// Dirty fix for https://github.com/Lenni0451/MCStructs/issues/4, I personally don't think it matters
101-
// too much since it's only the login disconnect message and nothing relevant to the gameplay
102-
wrapper.write(Type.COMPONENT, ComponentUtil.plainToJson(reason));
103-
}
96+
STRING_TO_JSON.write(wrapper, wrapper.read(Type.STRING));
10497
});
10598

10699
// Other Handlers

0 commit comments

Comments
 (0)