hologram changes

This commit is contained in:
Shaun Bennett 2016-01-25 03:29:53 -06:00
parent 181cce4774
commit 61f1a58b1c
2 changed files with 9 additions and 5 deletions

View File

@ -1014,6 +1014,7 @@ public class SpeedBuilders extends SoloGame
Manager.GetExplosion().BlockExplosion(blocks, eliminating.getMidpoint(), false, true);
eliminating.clearBuildArea(false);
eliminating.removeHologram();
judgeTargetLocation(null);

View File

@ -81,9 +81,9 @@ public class RecreationData
}
}
Vector mid = loc.toVector().subtract(game.getJudgeSpawn().toVector()).multiply(0.5);
Location hologramLocation = loc.clone().add(mid).add(0, 2, 0);
_hologram = new Hologram(game.getArcadeManager().getHologramManager(), hologramLocation, C.cGreen + player.getName());
// Vector mid = loc.toVector().subtract(game.getJudgeSpawn().toVector()).multiply(0.5);
// Location hologramLocation = loc.clone().add(mid).add(0, 2, 0);
_hologram = new Hologram(game.getArcadeManager().getHologramManager(), loc.clone().add(0, game.BuildSize + 0.5, 0), C.cYellow + player.getName());
_hologram.start();
}
@ -257,8 +257,6 @@ public class RecreationData
CornerA.getWorld().playEffect(getMidpoint(), Effect.STEP_SOUND, Material.LOG.getId());
clearBuildArea(false);
_hologram.stop();
}
public boolean isEmptyBuild(BuildData buildData)
@ -430,4 +428,9 @@ public class RecreationData
BlocksForDemolition.add(new DemolitionData(this, new ArrayList<Block>(), mobs));
}
public void removeHologram()
{
_hologram.stop();
}
}