dragonfly
dragonfly copied to clipboard
Elytras and fireworks crash the server
panic: start and end points are the same, giving a zero direction vector
goroutine 31 [running]:
github.com/df-mc/dragonfly/server/block/cube/trace.TraverseBlocks({0x4043e24a00000000, 0xc0438b3600000000, 0x4049129de0000000}, {0x4043e24a00000000, 0xc0438b3600000000, 0x4049129de0000000}, 0xc00450b380)
/go/pkg/mod/github.com/df-mc/[email protected]/server/block/cube/trace/trace.go:15 +0x6fd
github.com/df-mc/dragonfly/server/block/cube/trace.Perform({0x4043e24a00000000, 0xc0438b3600000000, 0x4049129de0000000}, {0x4043e24a00000000, 0xc0438b3600000000, 0x4049129de0000000}, 0xc00090ac40, {{0xbfe3333333333333, 0xbfd3333333333333, 0xbfe3333333333333}, ...}, ...)
/go/pkg/mod/github.com/df-mc/[email protected]/server/block/cube/trace/result.go:25 +0xf1
github.com/df-mc/dragonfly/server/entity.(*FireworkBehaviour).explode(0xc001805860, 0xc000fecf30)
/go/pkg/mod/github.com/df-mc/[email protected]/server/entity/firework_behaviour.go:134 +0xae5
github.com/df-mc/dragonfly/server/entity.(*PassiveBehaviour).Tick(0xc0017274a0, 0xc000fecf30)
/go/pkg/mod/github.com/df-mc/[email protected]/server/entity/passive.go:99 +0x2e6
github.com/df-mc/dragonfly/server/entity.(*FireworkBehaviour).Tick(0xc000fecf30?, 0x40c7d8?)
/go/pkg/mod/github.com/df-mc/[email protected]/server/entity/firework_behaviour.go:70 +0x17
github.com/df-mc/dragonfly/server/entity.(*Ent).Tick(0xc000fecf30, 0xc00090ac40, 0xcd537)
/go/pkg/mod/github.com/df-mc/[email protected]/server/entity/ent.go:173 +0x142
github.com/df-mc/dragonfly/server/world.ticker.tickEntities({0xc00090ac40?}, 0x0?)
/go/pkg/mod/github.com/df-mc/[email protected]/server/world/tick.go:286 +0x88a
github.com/df-mc/dragonfly/server/world.ticker.tick({0xc00450bf90?})
/go/pkg/mod/github.com/df-mc/[email protected]/server/world/tick.go:71 +0x20d
github.com/df-mc/dragonfly/server/world.ticker.tickLoop({0x0?})
/go/pkg/mod/github.com/df-mc/[email protected]/server/world/tick.go:26 +0x95
created by github.com/df-mc/dragonfly/server/world.Config.New in goroutine 1
/go/pkg/mod/github.com/df-mc/[email protected]/server/world/conf.go:88 +0x576