Fix a butterfly mate bug

This commit is contained in:
Nedelosk committed 2016-03-31 21:40:45 +02:00
1 parent c5fc804bfa
commit d794207dae
2 files changed
+1 -3

No files matched your search

@@ -45,7 +45,6 @@ import forestry.core.commands.RootCommand;
import forestry.core.config.Config;
import forestry.core.config.Constants;
import forestry.core.fluids.Fluids;
import forestry.core.genetics.CapabilityIndividual;
import forestry.core.genetics.alleles.AlleleFactory;
import forestry.core.genetics.alleles.AlleleHelper;
import forestry.core.genetics.alleles.AlleleRegistry;
@@ -95,8 +94,6 @@ public class PluginCore extends BlankForestryPlugin {
MultiblockManager.logicFactory = new MultiblockLogicFactory();
ForestryAPI.climateManager = new ClimateManager();
CapabilityIndividual.register();
}
@Override
@@ -52,6 +52,7 @@ public class AIButterflyMate extends AIButterflyInteract {
if(entity.getButterfly().getMate() == null){
if (entity.cooldownMate <= 0 && entity.getDistanceSqToEntity(targetMate) < 9.0D){
entity.getButterfly().mate(targetMate.getButterfly());
targetMate.getButterfly().mate(entity.getButterfly());
entity.cooldownMate = EntityButterfly.COOLDOWNS;
}
}else{