Skip to content

Commit a8cb51c

Browse files
minecraft/protocol/packet/agent_action.go: Fix Action
Co-Authored-By: Liliya233 <[email protected]>
1 parent d1b6d53 commit a8cb51c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

minecraft/protocol/packet/agent_action.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type AgentAction struct {
3131
// Identifier is a JSON identifier referenced in the initial action.
3232
Identifier string
3333
// Action represents the action type that was requested. It is one of the constants defined above.
34-
Action int32
34+
Action uint32
3535
// Response is a JSON string containing the response to the action.
3636
Response []byte
3737
}
@@ -43,6 +43,6 @@ func (*AgentAction) ID() uint32 {
4343

4444
func (pk *AgentAction) Marshal(io protocol.IO) {
4545
io.String(&pk.Identifier)
46-
io.Varint32(&pk.Action)
46+
io.Uint32(&pk.Action)
4747
io.ByteSlice(&pk.Response)
4848
}

0 commit comments

Comments
 (0)