Add meta checking to flower weight adjustment

(cherry picked from commit 49deb75278)
This commit is contained in:
Nirek-K authored and mezz committed 2015-05-09 17:54:44 -07:00
1 parent 23b8f8b892
commit 5fc1b10298
1 file changed
+1 -1
@@ -91,7 +91,7 @@ public final class FlowerRegistry implements IFlowerRegistry {
flowers.add(newFlower);
} else if (flowers.get(index).getMeta() != newFlower.getMeta()) {
flowers.add(newFlower);
} else if (flowers.get(index).getWeight() < newFlower.getWeight()) {
} else if (flowers.get(index).getWeight() < newFlower.getWeight() && flowers.get(index).getMeta() == newFlower.getMeta()) {
flowers.get(index).setWeight(newFlower.getWeight());
}