From 638693994c83667d29286385fb750b8060a1f908 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Szab=C3=B3?= Date: Mon, 25 Nov 2024 13:07:04 +0100 Subject: [PATCH] Make CONSUME task type only progress by one, instead of the item amount --- build.gradle.kts | 2 +- src/main/java/gg/auroramc/quests/listener/ConsumeListener.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index a01be9b..e497a8f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -18,7 +18,7 @@ plugins { } group = "gg.auroramc" -version = "1.3.7" +version = "1.3.8" repositories { flatDir { diff --git a/src/main/java/gg/auroramc/quests/listener/ConsumeListener.java b/src/main/java/gg/auroramc/quests/listener/ConsumeListener.java index b09ea28..9a06e6d 100644 --- a/src/main/java/gg/auroramc/quests/listener/ConsumeListener.java +++ b/src/main/java/gg/auroramc/quests/listener/ConsumeListener.java @@ -24,6 +24,6 @@ public void onPlayerItemConsume(PlayerItemConsumeEvent event) { ItemStack item = event.getItem(); AuroraQuests.getInstance().getQuestManager() - .progress(player, TaskType.CONSUME, item.getAmount(), Map.of("type", AuroraAPI.getItemManager().resolveId(item))); + .progress(player, TaskType.CONSUME, 1, Map.of("type", AuroraAPI.getItemManager().resolveId(item))); } }