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

Multiple states toggle wrong state #129

Closed
Mooselk opened this issue Dec 15, 2020 · 1 comment
Closed

Multiple states toggle wrong state #129

Mooselk opened this issue Dec 15, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@Mooselk
Copy link
Contributor

Mooselk commented Dec 15, 2020

Describe the bug
Toggling state with 2+ active states toggles wrong state. Might be toggling first state in the collection.

NPCLib JAR name
npclib-plugin-2.11-SNAPSHOT.jar

To Reproduce
Steps to reproduce the behavior:

// toggle 2 states
npc.toggleState(NPCState.ON_FIRE);
npc.toggleState(NPCState.CROUCHED);

// toggles crouch instead of fire
npc.toggleState(NPCState.ON_FIRE);

Expected behavior
Toggle state fire should toggle state fire instead of crouched and vice versa.

@Mooselk Mooselk added the bug Something isn't working label Dec 15, 2020
@JitseB
Copy link
Owner

JitseB commented Dec 27, 2020

Merged PR, closing issue. If the issue is not fixed, the issue may be reopened.

@JitseB JitseB closed this as completed Dec 27, 2020
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