mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-18 11:19:28 +00:00
Fix #650 Fix logic errors in bee planting
This commit is contained in:
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());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user