refactor: flatten app/ and util/ directory structure

This commit is contained in:
MatthewBeshay
2026-04-04 13:58:04 +11:00
committed by Tropical
parent 9c0dfd60d5
commit d814a78453
616 changed files with 1731 additions and 1747 deletions

View File

@@ -0,0 +1,18 @@
#include "PickupTask.h"
#include <memory>
#include "minecraft/world/item/ItemInstance.h"
void PickupTask::onTake(std::shared_ptr<ItemInstance> item,
unsigned int invItemCountAnyAux,
unsigned int invItemCountThisAux) {
if (item->id == m_itemId) {
if (m_auxValue == -1 && invItemCountAnyAux >= m_quantity) {
bIsCompleted = true;
} else if (m_auxValue == item->getAuxValue() &&
invItemCountThisAux >= m_quantity) {
bIsCompleted = true;
}
}
}