mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-27 15:22:57 +00:00
Fix #499 broken pollination with non-Forestry bees
This commit is contained in:
1 parent
f5245e766b
commit
a9b90f4fef
1 file changed
+2
-1
@@ -11,6 +11,7 @@
|
||||
package forestry.lepidopterology.entities;
|
||||
|
||||
import forestry.api.genetics.IPollinatable;
|
||||
import forestry.arboriculture.genetics.FakePollinatable;
|
||||
import forestry.arboriculture.genetics.ICheckPollinatable;
|
||||
import forestry.core.utils.GeneticsUtil;
|
||||
|
||||
@@ -34,7 +35,7 @@ public class AIButterflyPollinate extends AIButterflyInteract {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!entity.getButterfly().getGenome().getFlowerProvider().isAcceptedPollinatable(entity.worldObj, checkPollinatable.getPlantType())) {
|
||||
if (!entity.getButterfly().getGenome().getFlowerProvider().isAcceptedPollinatable(entity.worldObj, new FakePollinatable(checkPollinatable))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user