Skip to content

Commit

Permalink
1.6.* client crash fix
Browse files Browse the repository at this point in the history
sillerud committed Dec 3, 2013
1 parent 44f0f7a commit 488de3c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -70,7 +70,8 @@ public void disconnected(ChannelWrapper channel) throws Exception

@Override
public void handle(Packet3Chat chat) throws Exception {
if ( con.getProtocolVersion() >= PacketMapping.supported17Start )
if ( con.getProtocolVersion() >= PacketMapping.supported17Start &&
con.getProtocolVersion() <= PacketMapping.supported17End )
{
for ( Packet3Chat c : ChatConverter.fixJSONChat( JSON_PARSER.parse( chat.getMessage() ).getAsJsonObject() ) )
{

0 comments on commit 488de3c

Please sign in to comment.