diff --git a/build.gradle b/build.gradle index 6a561431..5f2eaf13 100644 --- a/build.gradle +++ b/build.gradle @@ -11,7 +11,7 @@ buildscript { apply plugin: 'net.minecraftforge.gradle.forge' apply plugin: 'maven' -version = "b7" +version = "b8" group = "de.ellpeck.naturesaura" archivesBaseName = "NaturesAura" diff --git a/src/main/java/de/ellpeck/naturesaura/chunk/effect/AnimalEffect.java b/src/main/java/de/ellpeck/naturesaura/chunk/effect/AnimalEffect.java index 0f4aa524..20d89b5d 100644 --- a/src/main/java/de/ellpeck/naturesaura/chunk/effect/AnimalEffect.java +++ b/src/main/java/de/ellpeck/naturesaura/chunk/effect/AnimalEffect.java @@ -93,6 +93,8 @@ public class AnimalEffect implements IDrainSpotEffect { if (!secondOptional.isPresent()) return; EntityAnimal second = secondOptional.get(); + if (second.getDistanceSq(first) > 5 * 5) + return; this.setInLove(first); this.setInLove(second);