fixed bug

removed debug
This commit is contained in:
Mini-Chiss 2015-07-25 17:11:02 +02:00
parent 7c7b166b4d
commit dffde68982
2 changed files with 8 additions and 3 deletions

View File

@ -48,6 +48,11 @@ public class UtilText {
public static boolean isStringSimilar(String newString, String oldString, float matchRequirement)
{
if (newString.length() <= 3)
{
return newString.toLowerCase().equals(oldString.toLowerCase());
}
for (int i=0 ; i < newString.length() * matchRequirement ; i++)
{
int matchFromIndex = 0;
@ -56,7 +61,7 @@ public class UtilText {
for (int j=0 ; j < oldString.length() ; j++)
{
//End of newString
if (i+j > newString.length())
if (i+j >= newString.length())
{
break;
}

View File

@ -202,7 +202,7 @@ public class Gun extends StrikeItem
else if (player.isSneaking() && _gunStats.getGunType() != GunType.SNIPER)
cone = cone * 0.8;
System.out.println("Vision: " + player.hasPotionEffect(PotionEffectType.NIGHT_VISION));
//System.out.println("Vision: " + player.hasPotionEffect(PotionEffectType.NIGHT_VISION));
//Sniper Zoomed
if (!player.hasPotionEffect(PotionEffectType.NIGHT_VISION) && _gunStats.getScope() && UtilGear.isMat(player.getInventory().getHelmet(), Material.PUMPKIN))
@ -223,7 +223,7 @@ public class Gun extends StrikeItem
}
}
System.out.println("Cone: " + cone);
//System.out.println("Cone: " + cone);
return cone;
}