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

Nametags: Add TOTEM_POP_COUNT ContentType #454

Merged
merged 2 commits into from
Jan 8, 2023

Conversation

Baitinq
Copy link
Contributor

@Baitinq Baitinq commented Jan 7, 2023

This patch allows for the popped totems to be able to be shown in the nametags. The totem pop counting functionality is embedded in the TotemPopCounter module, hence, it needs to be active in order for this to work.

As to ensure this is the case, this patch adds some logic preventing this feature to be enabled when the TotemPopCounter module is inactive, and also re-enables the TotemPopCounter module if this feature is enabled and the user tries to disable the TotemPopCounter module.

EDIT: This is a tiny bit hacky and in the future it could be greatly benefited by a refactor that separates the popped totem counting logic from the TotemPopCounter module, but I believe this works quite OK for now :))

Baitinq and others added 2 commits January 7, 2023 01:43
This patch allows for the popped totems to be able to be shown in the
nametags. The totem pop counting functionality is embedded in the
TotemPopCounter module, hence, it needs to be active in order for this
to work.

As to ensure this is the case, this patch adds some logic preventing
this feature to be enabled when the TotemPopCounter module is inactive,
and also re-enables the TotemPopCounter module if this feature is
enabled and the user tries to disable the TotemPopCounter module.
@Avanatiker
Copy link
Member

I removed your consumer and now we just make nametags force enable TotemPopCounter while its needed. Thanks for this pull :)

@Avanatiker Avanatiker merged commit 87f26b7 into lambda-client:master Jan 8, 2023
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 this pull request may close these issues.

2 participants