Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add configuration option to disable empty item stack highlighting #21

Merged

Conversation

mainrs
Copy link

@mainrs mainrs commented Sep 26, 2024

This is another QoL update. I noticed that the item highlight feature also highlights items inside of storage drawers if their stack size is 0. This usually happens if you lock the items using the key and remove all of them.

The PR adds a new configuration option that can be set to true to restore the old behavior. The new behavior does not highlight inventories that contain item stacks of size zero.

The behavior before the change. The inventory was highlighted and its stack size is zero:
2024-09-26_23 42 07

Having the config key set to false blocks the application of the highlight:
2024-09-26_23 17 29

dependencies.gradle Outdated Show resolved Hide resolved
src/main/java/com/gtnh/findit/FindItConfig.java Outdated Show resolved Hide resolved
@mainrs
Copy link
Author

mainrs commented Sep 27, 2024

Applied the changes, thanks for the review!

@Dream-Master Dream-Master requested a review from a team September 27, 2024 15:11
@Dream-Master Dream-Master merged commit bcfec26 into GTNewHorizons:master Sep 28, 2024
1 check passed
@mainrs mainrs deleted the feat/ignore-empty-itemstacks branch September 28, 2024 08:05
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.

3 participants