This commit is contained in:
Ellpeck 2019-01-10 23:57:48 +01:00
parent f6a9c7e7a8
commit 878a4562d7
2 changed files with 3 additions and 1 deletions

View file

@ -11,7 +11,7 @@ buildscript {
apply plugin: 'net.minecraftforge.gradle.forge' apply plugin: 'net.minecraftforge.gradle.forge'
apply plugin: 'maven' apply plugin: 'maven'
version = "b7" version = "b8"
group = "de.ellpeck.naturesaura" group = "de.ellpeck.naturesaura"
archivesBaseName = "NaturesAura" archivesBaseName = "NaturesAura"

View file

@ -93,6 +93,8 @@ public class AnimalEffect implements IDrainSpotEffect {
if (!secondOptional.isPresent()) if (!secondOptional.isPresent())
return; return;
EntityAnimal second = secondOptional.get(); EntityAnimal second = secondOptional.get();
if (second.getDistanceSq(first) > 5 * 5)
return;
this.setInLove(first); this.setInLove(first);
this.setInLove(second); this.setInLove(second);