Improved multiplayer everything method

This commit is contained in:
AlessioDP 2019-09-15 21:43:53 +02:00
parent 17ac3b9430
commit 515a1aa216
No known key found for this signature in database
GPG Key ID: B92B813840FFCC9F

View File

@ -3282,9 +3282,7 @@ public class Quester {
List<Quester> mq = getMultiplayerQuesters(quest); List<Quester> mq = getMultiplayerQuesters(quest);
for (Quester q : mq) { for (Quester q : mq) {
if (q.containsObjective(quest, objectiveType)) { if (q.containsObjective(quest, objectiveType)) {
if (quest.getOptions().getRequireSameQuest() && this.containsObjective(quest, objectiveType)) { if (!quest.getOptions().getRequireSameQuest() || this.containsObjective(quest, objectiveType)) {
fun.apply(q);
} else if (!quest.getOptions().getRequireSameQuest()) {
fun.apply(q); fun.apply(q);
} }
} }