Add meta checking to flower weight adjustment

This commit is contained in:
Nirek-K committed 2015-05-08 01:25:19 -05:00
1 parent 9d32c6dfcb
commit 49deb75278
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());
}