mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-28 15:36:18 +00:00
Fix #513 pollination issues with meta values and flowerpots
This commit is contained in:
1 parent
ab0952ac2b
commit
af59a2ad6a
3 files changed
+45
-30
No files matched your search
@@ -12,6 +12,8 @@ package forestry.apiculture.flowers;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
|
||||
import forestry.api.genetics.IFlower;
|
||||
|
||||
final class Flower implements IFlower {
|
||||
@@ -32,13 +34,13 @@ final class Flower implements IFlower {
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (!(obj instanceof Flower)) {
|
||||
if (!(obj instanceof IFlower)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Flower flower = (Flower) obj;
|
||||
IFlower flower = (IFlower) obj;
|
||||
|
||||
return Block.isEqualTo(this.block, flower.block) && this.meta == flower.meta;
|
||||
return Block.isEqualTo(this.block, flower.getBlock()) && (this.meta == OreDictionary.WILDCARD_VALUE || flower.getMeta() == OreDictionary.WILDCARD_VALUE || this.meta == flower.getMeta());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user