diff --git a/lib/teeworlds_client.rb b/lib/teeworlds_client.rb index c0c901d..24a4d9e 100644 --- a/lib/teeworlds_client.rb +++ b/lib/teeworlds_client.rb @@ -436,7 +436,7 @@ class TeeworldsClient end chunks = BigChungusTheChunkGetter.get_chunks(data) chunks.each do |chunk| - if chunk.flags_vital && !chunk.flags_resend + if chunk.flags_vital && !chunk.flags_resend && chunk.msg != NETMSG_NULL @netbase.ack = (@netbase.ack + 1) % NET_MAX_SEQUENCE puts "got ack: #{@netbase.ack}" if @verbose end