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

panic when placing banner: runtime error: hash of unhashable type block.Banner #873

Closed
RestartFU opened this issue May 22, 2024 · 0 comments

Comments

@RestartFU
Copy link
Contributor

RestartFU commented May 22, 2024

this happens when placing a black banner taken from the creative inventory.

goroutine 93 [running]:
runtime/debug.Stack()
        C:/Program Files/Go/src/runtime/debug/stack.go:24 +0x5e
github.com/bedrock-gophers/inv/inv.RedirectPlayerPackets.func1.1()
        C:/Users/Administrator/go/pkg/mod/github.com/bedrock-gophers/[email protected]/inv/player.go:36 +0x8c
panic({0xd8b660?, 0xc0053d0a70?})
        C:/Program Files/Go/src/runtime/panic.go:770 +0x132
github.com/moyai-network/teams/moyai/user.MageEffectFromItem(...)
        C:/Users/Administrator/Desktop/teams-master/moyai/user/ticker.go:364
github.com/moyai-network/teams/moyai/user.(*Handler).HandleItemUse(0xc00207f208, 0xc000e3b148)
        C:/Users/Administrator/Desktop/teams-master/moyai/user/handler.go:591 +0x910
github.com/df-mc/dragonfly/server/player.(*Player).UseItem(0xc00173d348)
        C:/Users/Administrator/go/pkg/mod/github.com/x!natsuri/[email protected]/server/player/player.go:1284 +0x2d6
github.com/df-mc/dragonfly/server/session.(*InventoryTransactionHandler).handleUseItemTransaction(0x241d?, 0xc0053ca000, 0xc001740800)
        C:/Users/Administrator/go/pkg/mod/github.com/x!natsuri/[email protected]/server/session/handler_inventory_transaction.go:162 +0x1a7
github.com/df-mc/dragonfly/server/session.(*InventoryTransactionHandler).Handle(0x1af3620, {0x10ba528?, 0xc0051053b0?}, 0xc001740800)
        C:/Users/Administrator/go/pkg/mod/github.com/x!natsuri/[email protected]/server/session/handler_inventory_transaction.go:42 +0x470
github.com/df-mc/dragonfly/server/session.(*Session).handlePacket(0xc001740800, {0x10ba528, 0xc0051053b0})
        C:/Users/Administrator/go/pkg/mod/github.com/x!natsuri/[email protected]/server/session/session.go:426 +0x8d
github.com/bedrock-gophers/inv/inv.RedirectPlayerPackets.func1()
        C:/Users/Administrator/go/pkg/mod/github.com/bedrock-gophers/[email protected]/inv/player.go:54 +0x14b
created by github.com/bedrock-gophers/inv/inv.RedirectPlayerPackets in goroutine 1
        C:/Users/Administrator/go/pkg/mod/github.com/bedrock-gophers/[email protected]/inv/player.go:30 +0x166```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant