diff --git a/Plugins/Mineplex.Core.Common/src/mineplex/core/common/util/UtilText.java b/Plugins/Mineplex.Core.Common/src/mineplex/core/common/util/UtilText.java index 694739fa9..4ae8f94dc 100644 --- a/Plugins/Mineplex.Core.Common/src/mineplex/core/common/util/UtilText.java +++ b/Plugins/Mineplex.Core.Common/src/mineplex/core/common/util/UtilText.java @@ -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; } diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/minestrike/items/guns/Gun.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/minestrike/items/guns/Gun.java index 0a70ee22a..dfd1863e8 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/minestrike/items/guns/Gun.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/minestrike/items/guns/Gun.java @@ -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; }