Fixed some fails in packet handling, and removed a warning.
Fixed some fails in packet handling, and removed a warning.

fador/mineserver,chtisgit/mine152,chtisgit/mine152,fador/mineserver,fador/mineserver,chtisgit/mine152,chtisgit/mine152,fador/mineserver