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

Fix set_slot armor indexing (Off-by-one error) #56

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

Luk-ESC
Copy link
Contributor

@Luk-ESC Luk-ESC commented Aug 22, 2024

The correct value was already used in the second match arm.
slot - 4 goes up to value 4 (8 - 4), self.armor has 4 elements (max index is 3)

@Luk-ESC Luk-ESC changed the title Fix set_slot armor indexing (Off-by-one error) Fix set_slot armor indexing (Off-by-one error) Aug 22, 2024
@Snowiiii
Copy link
Member

Looks good. Thanks @Luk-ESC

@Snowiiii Snowiiii merged commit d0db720 into Pumpkin-MC:master Aug 22, 2024
5 checks passed
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.

2 participants