We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Action
1 parent d1b6d53 commit a8cb51cCopy full SHA for a8cb51c
minecraft/protocol/packet/agent_action.go
@@ -31,7 +31,7 @@ type AgentAction struct {
31
// Identifier is a JSON identifier referenced in the initial action.
32
Identifier string
33
// Action represents the action type that was requested. It is one of the constants defined above.
34
- Action int32
+ Action uint32
35
// Response is a JSON string containing the response to the action.
36
Response []byte
37
}
@@ -43,6 +43,6 @@ func (*AgentAction) ID() uint32 {
43
44
func (pk *AgentAction) Marshal(io protocol.IO) {
45
io.String(&pk.Identifier)
46
- io.Varint32(&pk.Action)
+ io.Uint32(&pk.Action)
47
io.ByteSlice(&pk.Response)
48
0 commit comments