mirror of
https://github.com/geode-sdk/geode.git
synced 2025-04-15 22:44:42 -04:00
Update pickup fix for collectibles
This commit is contained in:
parent
cdc80ffe9f
commit
d9c775651e
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue