public void scanPickup() {
if (absX == apickupx && absY == apickupy) {
if (ItemHandler.itemExists(apickupid, absX, absY)) {
int itemAmount = ItemHandler.itemAmount(apickupid, apickupx, apickupy);
if (addItem(apickupid, itemAmount)) {
ItemHandler.removeItem(apickupid, apickupx, apickupy, itemAmount);
}
}
else if (hasntLoggedin){
}
resetPickup();
}
}