From 878a4562d7f91f274ceb5cd80c1f7853b3c0786c Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Thu, 10 Jan 2019 23:57:48 +0100 Subject: [PATCH] b8 --- build.gradle | 2 +- .../java/de/ellpeck/naturesaura/chunk/effect/AnimalEffect.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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);