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

Improvements to The Spectator #4587

Merged

Conversation

TheRealWormbo
Copy link
Collaborator

This includes both block entities and container minecarts with a loot table that has not yet been unpacked. Unfortunately, instanced Lootr containers and minecarts will always be skipped now.
(fixes VazkiiMods#4567)
- Scanning only happens every 4 game ticks
- Scanning for both potential held items in a single pass
- Entity scan does not check non-item entities if player is not holding any items, but is pressing shift
- Block scan is skipped entirely if player is not holding any items
- Block positions are stored as long-type array tag instead of list tag with long tag entries
- Scan results are cleared when the Spectator becomes unequipped

(fixes VazkiiMods#3500)
@TheRealWormbo TheRealWormbo merged commit ec6bf66 into VazkiiMods:1.20.x Apr 2, 2024
1 check passed
@TheRealWormbo TheRealWormbo deleted the 1.20-loot-spectator-fix branch April 2, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Spectator item crashes when scanning Bumblezone's Honey Cocoons when Lootr is on The Spectator item lag
1 participant