#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:
		| @@ -57,9 +57,7 @@ public class TabCompleteResponse extends DefinedPacket | |||||||
|             } |             } | ||||||
|  |  | ||||||
|             suggestions = new Suggestions( range, matches ); |             suggestions = new Suggestions( range, matches ); | ||||||
|         } |         } else | ||||||
|  |  | ||||||
|         if ( protocolVersion < ProtocolConstants.MINECRAFT_1_13 ) |  | ||||||
|         { |         { | ||||||
|             commands = readStringArray( buf ); |             commands = readStringArray( buf ); | ||||||
|         } |         } | ||||||
| @@ -84,9 +82,7 @@ public class TabCompleteResponse extends DefinedPacket | |||||||
|                     writeString( suggestion.getTooltip().getString(), buf ); |                     writeString( suggestion.getTooltip().getString(), buf ); | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|         } |         } else | ||||||
|  |  | ||||||
|         if ( protocolVersion < ProtocolConstants.MINECRAFT_1_13 ) |  | ||||||
|         { |         { | ||||||
|             writeStringArray( commands, buf ); |             writeStringArray( commands, buf ); | ||||||
|         } |         } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Outfluencer
					Outfluencer