Skip to content

Commit

Permalink
Remove deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
Krakenied committed May 26, 2023
1 parent c306daa commit ada3f9a
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -38,9 +38,8 @@ public void onReady() {
fixedQuestItemCache.clear();
}

@SuppressWarnings("deprecation")
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onItemPickup(PlayerItemConsumeEvent event) {
public void onPlayerItemConsume(PlayerItemConsumeEvent event) {
Player player = event.getPlayer();
if (player.hasMetadata("NPC")) {
return;
Expand All @@ -58,8 +57,6 @@ public void onItemPickup(PlayerItemConsumeEvent event) {
Task task = pendingTask.task();
TaskProgress taskProgress = pendingTask.taskProgress();

int amount = (int) task.getConfigValue("amount");

QuestItem qi;
if ((qi = fixedQuestItemCache.get(quest.getId(), task.getId())) == null) {
QuestItem fetchedItem = TaskUtils.getConfigQuestItem(task, "item", "data");
Expand Down

0 comments on commit ada3f9a

Please sign in to comment.