-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
Conversations doubled #300
Comments
Thanks for the report. A few other people reported this error, it seems that it has something to do with 1.9, maybe you're right. |
Hey @HollishKid, do the doubled conversations still happen? If so, could you send me your Spigot version, BetonQuest version, list of hooked plugins (shown when plugins are enabling) and the package containing the doubling conversation? I don't know how to reproduce this bug. |
I'll get you all that by tonight. |
I figured this out. It's because PlayerInteractEvent is called second time if the main hand does not do anything (in 1.9). So if you click on the NPC with empty hand, it will get called twice and the conversation will be started twice. That wouldn't be a problem since the second conversation will not start if the player is already in another one, but... Conversations are started asynchronously. If those two are started in separate threads it may happen that second one is started before the first one tells the plugin that it has already started. The fix would be to start the conversation in a synch thread and switch to async after the check has been done. |
Hello Co0sh,
Betonquest seems to work almost perfectly with 1.9 update.
I simply get conversations launched twice when clicking npc, could this be linked to double hand?
Moreover, I got the following error:
It seems this error came from the fact "no conditions" were true to enable conversation. Should this really throw an error in console?
Hollish
The text was updated successfully, but these errors were encountered: