Skip to content

Commit

Permalink
Update pickup fix for collectibles
Browse files Browse the repository at this point in the history
  • Loading branch information
altalk23 authored May 22, 2023
1 parent cdc80ff commit d9c7756
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions loader/src/hooks/PickupFix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@ struct PickupTriggerFix : Modify<PickupTriggerFix, GJBaseGameLayer> {
item = std::clamp(item, 0, 1099);
GJBaseGameLayer::collectItem(item, count);
}

void collectedObject(EffectGameObject* object) {
object->m_itemBlockAID = std::clamp(object->m_itemBlockAID, 0, 1099);
GJBaseGameLayer::collectedObject(object);
}
};

0 comments on commit d9c7756

Please sign in to comment.