Skip to content

Commit

Permalink
Merge pull request #1886 from Axionize/fix/pink-petals-ccb-size
Browse files Browse the repository at this point in the history
Fix IndexOutofBoundsException when interacting with Pink Petals with 3 or more flowers
  • Loading branch information
Axionize authored Dec 15, 2024
2 parents bf37add + dd74dc9 commit 9975d1a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ public enum HitboxData {
int flowerAmount = data.getFlowerAmount();
int horizontalIndex = getHorizontalID(data.getFacing());

CollisionBox result = NoCollisionBox.INSTANCE;
CollisionBox result = flowerAmount < 2 ? NoCollisionBox.INSTANCE : new ComplexCollisionBox(flowerAmount);

// Pre-defined collision boxes for each quadrant
HexCollisionBox[] boxes = new HexCollisionBox[] {
Expand Down

0 comments on commit 9975d1a

Please sign in to comment.