@@ -238,7 +238,7 @@ func (o *Outbound) InjectConnection(ctx context.Context, conn *bufio.CachedConn,
238238 conn .Rewind (metadata .Minecraft .SniffPosition )
239239 }
240240 switch metadata .Minecraft .NextState {
241- case mcprotocol .NextStateStatus :
241+ case mcprotocol .IntentStatus :
242242 // skip Status Request packet
243243 _ , err := conn .Peek (2 )
244244 if err != nil {
@@ -282,7 +282,7 @@ func (o *Outbound) InjectConnection(ctx context.Context, conn *bufio.CachedConn,
282282 mcprotocol .VarInt (metadata .Minecraft .ProtocolVersion ).WriteToBuffer (buffer )
283283 mcprotocol .WriteString (buffer , hostname )
284284 binary .BigEndian .PutUint16 (buffer .Extend (2 ), port )
285- buffer .WriteByte (mcprotocol .NextStateStatus )
285+ buffer .WriteByte (mcprotocol .IntentStatus )
286286 mcprotocol .AppendPacketLength (buffer , buffer .Len ())
287287 // construct status packet
288288 buffer .WriteByte (1 )
@@ -337,7 +337,7 @@ func (o *Outbound) InjectConnection(ctx context.Context, conn *bufio.CachedConn,
337337 return nil
338338 }
339339
340- case mcprotocol .NextStateLogin :
340+ case mcprotocol .IntentLogin :
341341 buffer := buf .New ()
342342 buffer .Reset (mcprotocol .MaxVarIntLen )
343343 if o .config .Minecraft .NameAccess .Mode != access .DefaultMode {
@@ -412,7 +412,7 @@ func (o *Outbound) InjectConnection(ctx context.Context, conn *bufio.CachedConn,
412412 mcprotocol .VarInt (metadata .Minecraft .ProtocolVersion ).WriteToBuffer (buffer )
413413 mcprotocol .WriteString (buffer , hostname )
414414 binary .BigEndian .PutUint16 (buffer .Extend (2 ), port )
415- buffer .WriteByte (mcprotocol .NextStateLogin )
415+ buffer .WriteByte (mcprotocol .IntentLogin )
416416 mcprotocol .AppendPacketLength (buffer , buffer .Len ())
417417 // write handshake and login packet
418418 cache := conn .Cache ()
@@ -431,7 +431,7 @@ func (o *Outbound) InjectConnection(ctx context.Context, conn *bufio.CachedConn,
431431 o .onlineCount .Add (- 1 )
432432 return err
433433
434- case mcprotocol .NextStateTransfer :
434+ case mcprotocol .IntentTransfer :
435435 // TODO: Minecraft transfer support
436436 conn .Conn .(* net.TCPConn ).SetLinger (0 )
437437 return conn .Close ()
0 commit comments