Merge branch 'master' of https://github.com/paulevsGitch/BetterEnd
This commit is contained in:
commit
7192df49d1
1 changed files with 3 additions and 2 deletions
|
@ -144,12 +144,13 @@ public class EntityDragonfly extends AnimalEntity implements Flutterer {
|
||||||
Vec3d vec3d = this.getRandomLocation();
|
Vec3d vec3d = this.getRandomLocation();
|
||||||
if (vec3d != null) {
|
if (vec3d != null) {
|
||||||
BlockPos pos = new BlockPos(vec3d);
|
BlockPos pos = new BlockPos(vec3d);
|
||||||
if (!pos.equals(EntityDragonfly.this.getBlockPos())) {
|
try {
|
||||||
Path path = EntityDragonfly.this.navigation.findPathTo(new BlockPos(vec3d), 1);
|
Path path = EntityDragonfly.this.navigation.findPathTo(pos, 1);
|
||||||
if (path != null) {
|
if (path != null) {
|
||||||
EntityDragonfly.this.navigation.startMovingAlong(path, 1.0D);
|
EntityDragonfly.this.navigation.startMovingAlong(path, 1.0D);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (Exception e) {}
|
||||||
}
|
}
|
||||||
super.start();
|
super.start();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue