{
return;
}
}
IBiometricIdentifier biometricIdentifier = this.getProjector(world, x, y, z).getBiometricIdentifier();
if (new Vector3(entity).distance(new Vector3(x, y, z).add(0.4)) < 0.5)
{
if (entity instanceof EntityLiving && !world.isRemote)
{
((EntityLiving) entity).addPotionEffect(new PotionEffect(Potion.confusion.id, 4 * 20, 3));
((EntityLiving) entity).addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, 20, 1));
boolean hasPermission = false;
List<EntityPlayer> entities = world.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(x, y, z, x + 1, y + 0.9, z + 1));
for (EntityPlayer entityPlayer : entities)
{
if (entityPlayer != null)
{
if (entityPlayer.isSneaking())
{
if (entityPlayer.capabilities.isCreativeMode)
{
hasPermission = true;
break;
}
else if (biometricIdentifier != null)
{
if (biometricIdentifier.isAccessGranted(entityPlayer.username, Permission.FORCE_FIELD_WARP))
{
hasPermission = true;
}
}
}