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

entity despawning when spawning another one. #558

Closed
RestartFU opened this issue Jul 12, 2022 · 0 comments
Closed

entity despawning when spawning another one. #558

RestartFU opened this issue Jul 12, 2022 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@RestartFU
Copy link
Contributor

here is a video showing it: https://youtu.be/7azKZ5AN6Hk

and here is the queue.New() code:

// New returns a new queue.
func New(name, address string, skin skin.Skin, pos mgl64.Vec3, rot mgl64.Vec2, srv *server.Server) *Queue {
	q := &Queue{
		srv:        srv,
		name:       name,
		address:    address,
		immuneFrom: map[world.Entity]struct{}{},
		p:          player.New(name, skin, cube.PosFromVec3(pos).Vec3Centre()),
	}
	q.p.Handle(&handler{q: q})
	l := world.NewLoader(16, srv.World(), q)
	l.Move(pos)
	l.Load(1)
	srv.World().AddEntity(q.p)
	q.p.Move(mgl64.Vec3{0, 0, 0}, rot.X(), rot.Y())

	queuesMu.Lock()
	queues = append(queues, q)
	queuesMu.Unlock()

	go q.startTickingQuery()
	go q.startTransferringPlayers()
	go q.startTickingNameTag()
	return q
}

I am on the latest commit, and it used to work fine like two months ago

@JustTalDevelops JustTalDevelops added the bug Something isn't working label Jul 19, 2022
@JustTalDevelops JustTalDevelops added this to the v0.8.0 milestone Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants