mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-25 19:45:21 +01:00
parent
28219a3993
commit
78bb5f171f
@ -841,9 +841,10 @@ public class Protocol1_13To1_12_2 extends Protocol<ClientboundPackets1_12_1, Cli
|
||||
int type = wrapper.get(Type.VAR_INT, 0);
|
||||
|
||||
if (type == 0) {
|
||||
Integer id = Ints.tryParse(wrapper.read(Type.STRING).substring(18));
|
||||
String s = wrapper.read(Type.STRING);
|
||||
Integer id;
|
||||
// Custom recipes
|
||||
if (id == null) {
|
||||
if (s.length() < 19 || (id = Ints.tryParse(s.substring(18))) == null) {
|
||||
wrapper.cancel();
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user