fixed bug
removed debug
This commit is contained in:
parent
7c7b166b4d
commit
dffde68982
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user