From 43c204cb331eb43d7ed4b7cef4221f2ac78ea963 Mon Sep 17 00:00:00 2001 From: LMBishop <13875753+LMBishop@users.noreply.github.com> Date: Thu, 14 Jul 2022 17:44:39 +0100 Subject: Remove default from allow-partial-completion (closes #413) --- .../leonardobishop/quests/bukkit/tasktype/type/InventoryTaskType.java | 2 +- .../quests/bukkit/tasktype/type/dependent/CitizensDeliverTaskType.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'bukkit/src') diff --git a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/type/InventoryTaskType.java b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/type/InventoryTaskType.java index 04de9ed6..92bbecf5 100644 --- a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/type/InventoryTaskType.java +++ b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/type/InventoryTaskType.java @@ -98,7 +98,7 @@ public final class InventoryTaskType extends BukkitTaskType { int itemsNeeded = (int) task.getConfigValue("amount"); boolean remove = TaskUtils.getConfigBoolean(task, "remove-items-when-complete"); - boolean allowPartial = TaskUtils.getConfigBoolean(task, "allow-partial-completion", true); + boolean allowPartial = TaskUtils.getConfigBoolean(task, "allow-partial-completion"); QuestItem qi; if ((qi = fixedQuestItemCache.get(quest.getId(), task.getId())) == null) { diff --git a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/type/dependent/CitizensDeliverTaskType.java b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/type/dependent/CitizensDeliverTaskType.java index f6b68aa1..fd118c6f 100644 --- a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/type/dependent/CitizensDeliverTaskType.java +++ b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/type/dependent/CitizensDeliverTaskType.java @@ -86,7 +86,7 @@ public final class CitizensDeliverTaskType extends BukkitTaskType { } int itemsNeeded = (int) task.getConfigValue("amount"); boolean remove = TaskUtils.getConfigBoolean(task, "remove-items-when-complete"); - boolean allowPartial = TaskUtils.getConfigBoolean(task, "allow-partial-completion", true); + boolean allowPartial = TaskUtils.getConfigBoolean(task, "allow-partial-completion"); QuestItem qi; if ((qi = fixedQuestItemCache.get(quest.getId(), task.getId())) == null) { -- cgit v1.2.3-70-g09d2