Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unexported field or method error with commands #523

Closed
HashimTheArab opened this issue Jun 2, 2022 · 1 comment
Closed

unexported field or method error with commands #523

HashimTheArab opened this issue Jun 2, 2022 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@HashimTheArab
Copy link
Contributor

HashimTheArab commented Jun 2, 2022

panic: reflect.Value.Interface: cannot return value obtained from unexported field or method

goroutine 75 [running]:
reflect.valueInterface({0x13d2640?, 0xc0000a5580?, 0x0?}, 0x0?)
        Z:/Program Files/Go/src/reflect/value.go:1441 +0xd8
reflect.Value.Interface(...)
        Z:/Program Files/Go/src/reflect/value.go:1430
github.com/df-mc/dragonfly/server/cmd.Command.Params({{0xc002f26ae0, 0x2, 0x2}, {0x1550a7f, 0x5}, {0x0, 0x0}, {0xc000974100, 0x31}, {0x0, ...}}, ...)
        Z:/Program Files/Go/pkg/mod/github.com/df-mc/dragonfly@v0.6.3-0.20220530090453-45cae5a85b10/server/cmd/command.go:189 +0x42f
github.com/df-mc/dragonfly/server/session.(*Session).sendAvailableCommands(0xc000eba000)
        Z:/Program Files/Go/pkg/mod/github.com/df-mc/dragonfly@v0.6.3-0.20220530090453-45cae5a85b10/server/session/command.go:52 +0x268
github.com/df-mc/dragonfly/server/session.(*Session).background(0xc000eba000)
        Z:/Program Files/Go/pkg/mod/github.com/df-mc/dragonfly@v0.6.3-0.20220530090453-45cae5a85b10/server/session/session.go:332 +0x5e
created by github.com/df-mc/dragonfly/server/session.(*Session).handlePackets
        Z:/Program Files/Go/pkg/mod/github.com/df-mc/dragonfly@v0.6.3-0.20220530090453-45cae5a85b10/server/session/session.go:285 +0x8a
exit status 2
@JustTalDevelops JustTalDevelops added the bug Something isn't working label Jun 2, 2022
@Sandertv
Copy link
Member

Sandertv commented Jun 2, 2022

Should be fixed in 9a2c122.

@Sandertv Sandertv closed this as completed Jun 2, 2022
@Sandertv Sandertv added this to the v0.7.0 milestone Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants