mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-18 03:15:28 +00:00
Fix a butterfly mate bug
This commit is contained in:
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{
|
||||
|
||||
Reference in new issue
Block a user