mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-26 05:08:34 +01:00
b8
This commit is contained in:
parent
f6a9c7e7a8
commit
878a4562d7
2 changed files with 3 additions and 1 deletions
|
@ -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"
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue