mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 04:56:50 +01:00
We build for 1.5.
This commit is contained in:
parent
1161de3f63
commit
a53afd313e
1 changed files with 2 additions and 3 deletions
|
@ -2,14 +2,13 @@ package org.bukkit.craftbukkit.conversations;
|
||||||
|
|
||||||
import org.bukkit.conversations.Conversation;
|
import org.bukkit.conversations.Conversation;
|
||||||
|
|
||||||
import java.util.Deque;
|
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
public class ConversationTracker {
|
public class ConversationTracker {
|
||||||
|
|
||||||
private Deque<Conversation> conversationQueue = new LinkedList<Conversation>();
|
private LinkedList<Conversation> conversationQueue = new LinkedList<Conversation>();
|
||||||
|
|
||||||
public synchronized boolean beginConversation(Conversation conversation) {
|
public synchronized boolean beginConversation(Conversation conversation) {
|
||||||
if (!conversationQueue.contains(conversation)) {
|
if (!conversationQueue.contains(conversation)) {
|
||||||
|
@ -39,7 +38,7 @@ public class ConversationTracker {
|
||||||
|
|
||||||
public synchronized void abandonAllConversations() {
|
public synchronized void abandonAllConversations() {
|
||||||
|
|
||||||
Deque<Conversation> oldQueue = conversationQueue;
|
LinkedList<Conversation> oldQueue = conversationQueue;
|
||||||
conversationQueue = new LinkedList<Conversation>();
|
conversationQueue = new LinkedList<Conversation>();
|
||||||
for(Conversation conversation : oldQueue) {
|
for(Conversation conversation : oldQueue) {
|
||||||
conversation.abandon();
|
conversation.abandon();
|
||||||
|
|
Loading…
Reference in a new issue