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

Bow crashing when used #720

Closed
xNatsuri opened this issue Dec 23, 2022 · 1 comment
Closed

Bow crashing when used #720

xNatsuri opened this issue Dec 23, 2022 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@xNatsuri
Copy link
Contributor

panic: interface conversion: world.Item is nil, not item.Arrow [recovered]
        panic: interface conversion: world.Item is nil, not item.Arrow

goroutine 28 [running]:
github.com/df-mc/dragonfly/server/session.(*Session).handlePackets.func1()
        C:/Users/jonat/go/pkg/mod/github.com/df-mc/dragonfly@v0.8.11-0.20221222044455-cc384fc61224/server/session/session.go:303 +0x74
panic({0x1178c60, 0xc00511e330})
        C:/Program Files/Go/src/runtime/panic.go:884 +0x212
github.com/df-mc/dragonfly/server/item.Bow.Release({}, {0x1391558, 0xc0019482c0}, 0x51c2ac58, 0xc0046fa0b0)
        C:/Users/jonat/go/pkg/mod/github.com/df-mc/dragonfly@v0.8.11-0.20221222044455-cc384fc61224/server/item/bow.go:60 +0xbe5
github.com/df-mc/dragonfly/server/player.(*Player).ReleaseItem(0xc0019482c0)
        C:/Users/jonat/go/pkg/mod/github.com/df-mc/dragonfly@v0.8.11-0.20221222044455-cc384fc61224/server/player/player.go:1400 +0x2a2
github.com/df-mc/dragonfly/server/session.(*InventoryTransactionHandler).handleReleaseItemTransaction(...)
        C:/Users/jonat/go/pkg/mod/github.com/df-mc/dragonfly@v0.8.11-0.20221222044455-cc384fc61224/server/session/handler_inventory_transaction.go:154
github.com/df-mc/dragonfly/server/session.(*InventoryTransactionHandler).Handle(0x116d3e0?, {0x1382bb0?, 0xc004690fa0?}, 0xc0004d0600)
        C:/Users/jonat/go/pkg/mod/github.com/df-mc/dragonfly@v0.8.11-0.20221222044455-cc384fc61224/server/session/handler_inventory_transaction.go:46 +0x1b3
github.com/df-mc/dragonfly/server/session.(*Session).handlePacket(0xc0004d0600, {0x1382bb0, 0xc004690fa0})
        C:/Users/jonat/go/pkg/mod/github.com/df-mc/dragonfly@v0.8.11-0.20221222044455-cc384fc61224/server/session/session.go:424 +0x9b
github.com/df-mc/dragonfly/server/session.(*Session).handlePackets(0xc0004d0600)
        C:/Users/jonat/go/pkg/mod/github.com/df-mc/dragonfly@v0.8.11-0.20221222044455-cc384fc61224/server/session/session.go:312 +0xef
created by github.com/df-mc/dragonfly/server/session.(*Session).Start
        C:/Users/jonat/go/pkg/mod/github.com/df-mc/dragonfly@v0.8.11-0.20221222044455-cc384fc61224/server/session/session.go:217 +0xa5
exit status 2
@xNatsuri
Copy link
Contributor Author

Did some more testing and this only occurs when you are in creative and you dont have a arrow in your inventory

@Sandertv Sandertv added the bug Something isn't working label Dec 23, 2022
@Sandertv Sandertv added this to the v0.9.0 milestone Dec 23, 2022
Sandertv added a commit that referenced this issue Dec 23, 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

2 participants