#3158: Remove redundant protocol version check in the TabCompleteResponse packet
No need for the second if in the read and write method use a else instead
This commit is contained in:
parent
96482cc0cf
commit
2e0e88db0d
@ -57,9 +57,7 @@ public class TabCompleteResponse extends DefinedPacket
|
||||
}
|
||||
|
||||
suggestions = new Suggestions( range, matches );
|
||||
}
|
||||
|
||||
if ( protocolVersion < ProtocolConstants.MINECRAFT_1_13 )
|
||||
} else
|
||||
{
|
||||
commands = readStringArray( buf );
|
||||
}
|
||||
@ -84,9 +82,7 @@ public class TabCompleteResponse extends DefinedPacket
|
||||
writeString( suggestion.getTooltip().getString(), buf );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( protocolVersion < ProtocolConstants.MINECRAFT_1_13 )
|
||||
} else
|
||||
{
|
||||
writeStringArray( commands, buf );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user