Fix #650 Fix logic errors in bee planting

This commit is contained in:
Nirek-K committed 2015-05-07 20:33:44 -05:00
1 parent c705486472
commit d29f4c0b79
1 file changed
+3 -1
@@ -89,7 +89,9 @@ public final class FlowerRegistry implements IFlowerRegistry {
index = flowers.indexOf(newFlower);
if (index == -1) {
flowers.add(newFlower);
} else if (flowers.get(index).getWeight() > newFlower.getWeight()) {
} else if (flowers.get(index).getMeta() != newFlower.getMeta()) {
flowers.add(newFlower);
} else if (flowers.get(index).getWeight() < newFlower.getWeight()) {
flowers.get(index).setWeight(newFlower.getWeight());
}