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 IndexOutOfBoundsException on BlockFertilizeEvent #4609

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

SirYwell
Copy link
Member

Overview

Fixes #4608

Description

On an empty list, the code threw an exception. Taking a closer look, the initial position to check should be the one the fertilizer was applied to, especially since the block list doesn't have any specified order.

Submitter Checklist

  • Make sure you are opening from a topic branch (/feature/fix/docs/ branch (right side)) and not your main branch.
  • Ensure that the pull request title represents the desired changelog entry.
  • New public fields and methods are annotated with @since TODO.
  • I read and followed the contribution guidelines.

@SirYwell SirYwell requested a review from a team as a code owner February 24, 2025 16:02
@github-actions github-actions bot added the Bugfix This PR fixes a bug label Feb 24, 2025
@SirYwell SirYwell merged commit e8c1706 into main Feb 28, 2025
8 checks passed
@SirYwell SirYwell deleted the fix/IOOBE-BlockFertilizeEvent branch February 28, 2025 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugfix This PR fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Could not pass event BlockFertilizeEvent
3 participants