Skip to content
Permalink
Browse files

Fixed a bug that causes newly spawned trilobites to have the incorrec…

…t amount of legs if one with a different amount is nearby.
  • Loading branch information...
Ri5ux committed Apr 2, 2019
1 parent ea1f3be commit 4e45c0713052153b36fdd0aa44610b275a15c236
Showing with 7 additions and 10 deletions.
  1. +7 −10 src/main/java/org/avp/client/model/entities/living/ModelTrilobite.java
@@ -869,19 +869,16 @@ public void render(EntityTrilobite trilobite)
{
animate(trilobite);

if (!trilobite.isFertile())
int[] tentacles = trilobite.getDetachedTentacles();

for (int i = 0; i < trilobite.getAmountOfTentacles(); i++)
{
int[] tentacles = trilobite.getDetachedTentacles();
Model.Part tentacle = getTentacleById(i);

for (int i = 0; i < trilobite.getAmountOfTentacles(); i++)
if (tentacle != null)
{
Model.Part tentacle = getTentacleById(i);

if (tentacle != null)
{
boolean hidden = tentacles[i] == 1 ? true : false;
tentacle.isHidden = hidden;
}
boolean hidden = tentacles[i] == 1 ? true : false;
tentacle.isHidden = hidden;
}
}

0 comments on commit 4e45c07

Please sign in to comment.
You can’t perform that action at this time.