Skip to content

[Crate Limiter] Fix not limiting items due to wrong Item ID#151

Open
Infinitay wants to merge 5 commits intoEnriath:crate-limiterfrom
Infinitay:crate-limiter
Open

[Crate Limiter] Fix not limiting items due to wrong Item ID#151
Infinitay wants to merge 5 commits intoEnriath:crate-limiterfrom
Infinitay:crate-limiter

Conversation

@Infinitay
Copy link

@Infinitay Infinitay commented Mar 16, 2026

This PR fixes an issue where the MenuOptionClicked event wouldn't be consumed for item ops which caused the plugin to not function properly. For example, prior to these changes, players could spam click Search on Bird nests and this plugin wouldn't limit it according to the set Ticks per item config option. After these changes, the plugin behaves as intended.

The main fix to use the appropriate item ID was simple. A while back, RL added item-related methods to MenuOptionClicked and MenuEntry such as #getItemId. If we don't use this method, then getId would be returning the wrong ID.

Additional changes:

  • Updated the RuneLite version to latest.release
    • To use latest available RL API(s) such as the gameval API
  • Migrated the old usage of ItemID variables to the new gameval API
    • RuneLite's old ItemID API was deprecated
  • Added "nest" to the plugin tags and also its plugin hub tags
  • Updated the plugin to v1.2.1

- MenuOptionClicked#getId wasn't returning the item ID when clicking on items in the inventory, you have to use MenuOptionClicked#getItemId instead.
	- RuneLite updated MenuOptionClicked and MenuEntry adding various item-related operations (runelite/runelite@c683e41)
- Fixed an issue where the event wouldn't be consumed for item ops which caused the plugin to not function properly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant