Skip to content

Fix IndexOutOfBoundsException on BlockFertilizeEvent#4609

Merged
SirYwell merged 1 commit intomainfrom
fix/IOOBE-BlockFertilizeEvent
Feb 28, 2025
Merged

Fix IndexOutOfBoundsException on BlockFertilizeEvent#4609
SirYwell merged 1 commit intomainfrom
fix/IOOBE-BlockFertilizeEvent

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