-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
✨ Stop a moving Citizens NPC when in a conversation #188
Conversation
Signed-off-by: BakaAless <44125445+BakaAless@users.noreply.github.com>
paper/src/main/java/rocks/gravili/notquests/paper/conversation/ConversationManager.java
Outdated
Show resolved
Hide resolved
paper/src/main/java/rocks/gravili/notquests/paper/conversation/ConversationManager.java
Show resolved
Hide resolved
@@ -55,6 +52,9 @@ | |||
import rocks.gravili.notquests.paper.structs.variables.VariableDataType; | |||
|
|||
public class ConversationManager { | |||
|
|||
public static final Map<Integer, List<UUID>> CONVERSATIONS_IN_PROGRESS = new HashMap<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm what this does is not quite clear from the naming (that it stores npc IDs). Also, is it necessary, considering all open conversations are already stored in "openConversations"?
Also make sure not to use static here (or pretty much anywhere in notquests)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to easily retrieve all the conversations that involve this NPC: the conversations can have several speakers and it is much more complex to retrieve the one that involves the current NPC.
Signed-off-by: BakaAless <44125445+BakaAless@users.noreply.github.com>
Signed-off-by: BakaAless <44125445+BakaAless@users.noreply.github.com>
paper/src/main/java/rocks/gravili/notquests/paper/conversation/ConversationManager.java
Outdated
Show resolved
Hide resolved
Signed-off-by: BakaAless <44125445+BakaAless@users.noreply.github.com>
Signed-off-by: BakaAless <44125445+BakaAless@users.noreply.github.com>
Signed-off-by: BakaAless <44125445+BakaAless@users.noreply.github.com>
Thank you so much for this cool PR again <3 |
All is in the title.
Minecraft_.1.19.2.-.Multiplayer.3rd-party.Server.2023-02-17.18-32-32.mp4