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

crash when using (or placing) a chest #434

Closed
RestartFU opened this issue Feb 26, 2022 · 1 comment
Closed

crash when using (or placing) a chest #434

RestartFU opened this issue Feb 26, 2022 · 1 comment
Labels
invalid This doesn't seem right

Comments

@RestartFU
Copy link
Contributor

so here is the crash log
image
I don't know if it is caused by the user trying to open the chest or not, the person was streaming and they tried to open it right after placing it so I'm not sure.

@Sandertv
Copy link
Member

This doesn't appear to be a dragonfly bug. Somewhere in your code (I think) is a sync.Map where a world.Block is used as the key. That won't work for blocks such as chests, which have incomparable fields such as an inventory. Depending on what you use it for, you could instead use (world.Block).Hash() as the key in this map.

@Sandertv Sandertv added the invalid This doesn't seem right label Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants