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

Server crashes while flying with an elytra #790

Closed
lightyisreal opened this issue Jun 10, 2023 · 0 comments · Fixed by #857
Closed

Server crashes while flying with an elytra #790

lightyisreal opened this issue Jun 10, 2023 · 0 comments · Fixed by #857

Comments

@lightyisreal
Copy link
Contributor

I was flying with an elytra + fireworks and the server panicked with this error:

panic: start and end points are the same, giving a zero direction vector

goroutine 45 [running]:
github.com/df-mc/dragonfly/server/block/cube/trace.TraverseBlocks({0xc030af89e0000000, 0xc04ac31080000000, 0x4038140200000000}, {0xc030af89e0000000, 0xc04ac31080000000, 0x4038140200000000}, 0xc000835390)
        C:/Users/Anthony/go/pkg/mod/github.com/df-mc/dragonfly@v0.9.7-0.20230610115953-f021ac59eac3/server/block/cube/trace/trace.go:15 +0x725
github.com/df-mc/dragonfly/server/block/cube/trace.Perform({0xc030af89e0000000, 0xc04ac31080000000, 0x4038140200000000}, {0xc030af89e0000000, 0xc04ac31080000000, 0x4038140200000000}, 0xc000226e00, {{0xbfe3333333333333, 0xbfd3333333333333, 0xbfe3333333333333}, ...}, ...)
        C:/Users/Anthony/go/pkg/mod/github.com/df-mc/dragonfly@v0.9.7-0.20230610115953-f021ac59eac3/server/block/cube/trace/result.go:25 +0xfd
github.com/df-mc/dragonfly/server/entity.(*FireworkBehaviour).explode(0xc012e7b920, 0xc000717200)
        C:/Users/Anthony/go/pkg/mod/github.com/df-mc/dragonfly@v0.9.7-0.20230610115953-f021ac59eac3/server/entity/firework_behaviour.go:134 +0xb05
github.com/df-mc/dragonfly/server/entity.(*PassiveBehaviour).Tick(0xc00a3fdef0, 0xc000717200)
        C:/Users/Anthony/go/pkg/mod/github.com/df-mc/dragonfly@v0.9.7-0.20230610115953-f021ac59eac3/server/entity/passive.go:99 +0x2f2
github.com/df-mc/dragonfly/server/entity.(*FireworkBehaviour).Tick(0xc000717200?, 0x4eb37d?)
        C:/Users/Anthony/go/pkg/mod/github.com/df-mc/dragonfly@v0.9.7-0.20230610115953-f021ac59eac3/server/entity/firework_behaviour.go:70 +0x1d
github.com/df-mc/dragonfly/server/entity.(*Ent).Tick(0xc000717200, 0xc000226e00, 0x1e67)
        C:/Users/Anthony/go/pkg/mod/github.com/df-mc/dragonfly@v0.9.7-0.20230610115953-f021ac59eac3/server/entity/ent.go:173 +0x137
github.com/df-mc/dragonfly/server/world.ticker.tickEntities({0xc000226e00?}, 0xc0006a6e80?)
        C:/Users/Anthony/go/pkg/mod/github.com/df-mc/dragonfly@v0.9.7-0.20230610115953-f021ac59eac3/server/world/tick.go:286 +0x897
github.com/df-mc/dragonfly/server/world.ticker.tick({0xc000835f90?})
        C:/Users/Anthony/go/pkg/mod/github.com/df-mc/dragonfly@v0.9.7-0.20230610115953-f021ac59eac3/server/world/tick.go:71 +0x225
github.com/df-mc/dragonfly/server/world.ticker.tickLoop({0xc000c8daa0?})
        C:/Users/Anthony/go/pkg/mod/github.com/df-mc/dragonfly@v0.9.7-0.20230610115953-f021ac59eac3/server/world/tick.go:26 +0xa5
created by github.com/df-mc/dragonfly/server/world.Config.New
        C:/Users/Anthony/go/pkg/mod/github.com/df-mc/dragonfly@v0.9.7-0.20230610115953-f021ac59eac3/server/world/conf.go:88 +0x5aa
exit status 2
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

Successfully merging a pull request may close this issue.

1 participant