Skip to content

Commit

Permalink
Fix overgrowth check for normal flowers
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Estoll committed Jul 10, 2024
1 parent ae52012 commit d43da4c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void update(Level level) {
}

public boolean hasActiveParent(DandelifeonBlockEntity dandie) {
return flowerCoords != null && dandie.getLevel().getBlockEntity(flowerCoords) instanceof DandelifeonBlockEntity parent && dandie.getLevel().hasNeighborSignal(flowerCoords) && parent.isOnSpecialSoil() == dandie.overgrowthBoost;
return flowerCoords != null && dandie.getLevel().getBlockEntity(flowerCoords) instanceof DandelifeonBlockEntity parent && dandie.getLevel().hasNeighborSignal(flowerCoords) && (!dandie.overgrowthBoost || parent.isOnSpecialSoil());
}

public int getGeneration() {
Expand Down

0 comments on commit d43da4c

Please sign in to comment.