Permalink
Browse files

Drones produce hive resin again.

  • Loading branch information...
Ri5ux committed Feb 10, 2019
1 parent 1f9ed1a commit b63dbadd4a8a2d90a4bf8fba16500b822e5da653
Showing with 14 additions and 1 deletion.
  1. +14 −1 src/main/java/org/avp/entities/living/EntityDrone.java
@@ -116,7 +116,6 @@ public void tickRepurposingAI()
{
if (this.rand.nextInt(3) == 0)
{
@SuppressWarnings("unchecked")
ArrayList<EntityOvamorph> ovamorphs = (ArrayList<EntityOvamorph>) Entities.getEntitiesInCoordsRange(this.world, EntityOvamorph.class, new Pos(this), 16);

if (this.getHive() != null)
@@ -147,6 +146,20 @@ public void tickRepurposingAI()
}
}

@Override
public void produceJelly()
{
if (!this.world.isRemote)
{
if (this.world.getWorldTime() % 20 == 0)
{
if (this.getJellyLevel() < (this.getMaturityLevel() / 2))
{
this.setJellyLevel(this.getJellyLevel() + 20);
}
}
}
}
public void tickHiveBuildingAI()
{
if (!this.world.isRemote)

0 comments on commit b63dbad

Please sign in to comment.