Remove unnecessary tabs. Make the judge guardian use it's own laser again.

This commit is contained in:
Virizion 2016-01-24 21:55:57 -05:00
parent 0eda813d41
commit bfe9aa7a59
7 changed files with 118 additions and 131 deletions

View File

@ -122,7 +122,6 @@ public class SpeedBuilders extends SoloGame
private ArmorStand _judgeEntity;
private DisguiseGuardian _judgeDisguise;
private Location _judgeSpawn;
private ArmorStand _judgeLaserHelper;
private ArmorStand _judgeLaserTarget;
private ArrayList<RecreationData> _toEliminate = new ArrayList<RecreationData>();
@ -362,42 +361,30 @@ public class SpeedBuilders extends SoloGame
if (_judgeLaserTarget == null)
return;
Manager.GetDisguise().undisguise(_judgeLaserHelper);
_judgeLaserHelper.remove();
_judgeLaserTarget.remove();
_judgeLaserHelper = null;
_judgeLaserTarget = null;
_judgeDisguise.setTarget(0);
Manager.GetDisguise().updateDisguise(_judgeDisguise);
}
else
{
if (_judgeLaserTarget != null)
judgeTargetLocation(null);
CreatureAllowOverride = true;
_judgeLaserHelper = _judgeEntity.getWorld().spawn(_judgeEntity.getLocation().subtract(_judgeEntity.getLocation().getDirection().multiply(2)), ArmorStand.class);
_judgeLaserTarget = _judgeEntity.getWorld().spawn(loc, ArmorStand.class);
CreatureAllowOverride = false;
_judgeLaserHelper.setVisible(false);
_judgeLaserHelper.setGravity(false);
_judgeLaserHelper.setSmall(true);
_judgeLaserTarget.setVisible(false);
_judgeLaserTarget.setGravity(false);
_judgeLaserTarget.setSmall(true);
UtilEnt.CreatureLook(_judgeEntity, _judgeLaserTarget.getLocation());
DisguiseGuardian disguise = new DisguiseGuardian(_judgeLaserHelper);
_judgeDisguise.setTarget(_judgeLaserTarget.getEntityId());
disguise.setTarget(_judgeLaserTarget.getEntityId());
disguise.setInvisible(true);
Manager.GetDisguise().disguise(disguise);
Manager.GetDisguise().updateDisguise(_judgeDisguise);
}
}