dragonfly icon indicating copy to clipboard operation
dragonfly copied to clipboard

Server crashes while flying with an elytra

Open lightyisreal opened this issue 2 years ago • 0 comments

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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/server/world/conf.go:88 +0x5aa
exit status 2

lightyisreal avatar Jun 10 '23 21:06 lightyisreal