Permalink
Browse files

The matriarch no longer glitches around in place when she has constru…

…cted her hive.
  • Loading branch information...
Ri5ux committed Feb 10, 2019
1 parent a45dd06 commit 8e23363f3a04dcdbcad04beed498551eb14c63c5
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/org/avp/entities/living/EntityMatriarch.java
@@ -196,7 +196,7 @@ private void pathfindToHive()

int hiveDist = (int) this.getDistance(coordHive.x, coordHive.y, coordHive.z);

if (hiveDist > this.hive.getMaxHiveRadius() * 0.5 && this.getAttackTarget() == null || this.getAttackTarget() == null && this.getNavigator().tryMoveToXYZ(coordHive.x, coordHive.y, coordHive.z, 1.55D))
if (hiveDist > this.hive.getMaxHiveRadius() * 0.5 && this.getAttackTarget() == null)
{
this.pathPoints = Pos.getPointsBetween(coordQueen, coordHive, hiveDist / 12);

@@ -259,7 +259,7 @@ public void onUpdate()
this.reproduce();
this.handleOvipositorGrowth();
this.jumpBoost();
// this.pathfindToHive(); //causes queen to glitch out ... detect if close enough
this.pathfindToHive(); //causes queen to glitch out ... detect if close enough
this.heal();

// this.getHive().destroy();

0 comments on commit 8e23363

Please sign in to comment.