-
Notifications
You must be signed in to change notification settings - Fork 19
BetterFirework: Don't start flying when middle clicking on players #213
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
base: 1.21.5
Are you sure you want to change the base?
BetterFirework: Don't start flying when middle clicking on players #213
Conversation
|
there are other issues with conflicting binds which complicate the solution. I think keybind settings should have the option to cancel the action so only one bind is triggered, but this also includes listener priority to decide which modules trigger first. The user should have the ability to choose the priority of each module, KillAura having priority over AntiAim for example, but the problem is listener priority is hard set at initialization currently. We could prob just replace the priority for a getter so its mutable but i haven't experimented with it yet. @emyfops what do you think? |
I hate mutability, the listener priority is know at compile time so we can design modules without having to check for module priority. Now lets say you wanted to have module priority, I believe legacy used to have a small manager for combat modules that would prevent conflicts. If we added this we should also implement a scheduler so that a module can only be active for a certain time before it switches the active module. The scheduler should also handle concurrent actions such as one module rotating while the other is switching item. |
I understand not wanting mutability, however i don't think we ever need to check for module priority as the listeners handle that. I don't think we'd need a scheduler as i don't see a scenario where the modules would have to be cycled through. I wouldn't want KillAura being overridden by AntiAim just because its been running for a while. The managers handle conflicting actions by themselves so the only issue is which one gets activated first and for that i think having the choice up to the user seems the most fitting. It could be a simple setting in the same menu we have our debug info and render setting for the build sim (when that gets added). |
|
So it's ready to merge? |
|
I don't think this should be merged as it doesn't fix the larger issue unfortunately |
|
@beanbag44 just merge this damn pull request. Who cares if one module has a hard-coded priority over another module? People don't care if they don't have a configurable priority system. They do care if the module has an obvious bug that could easily be fixed but isn't. |
|
I'm just about to make a branch and implement the priority system; it's next up on the todo list. you'd have the same issue if anyone wanted to use middle click as a bind for another module. It only fixes one of many potential problems and would only be there for as long as it takes me to finish the larger feature |
Fixes https://discord.com/channels/834570721070022687/1450606441755840605/1450606441755840605