Fix Bug Report: 1183433476591063080

This commit is contained in:
kirillsaint 2023-12-31 12:26:49 +06:00
parent 71b4813db9
commit a36a10df1f

View File

@ -29,7 +29,7 @@ public class Server {
return false; return false;
} }
try { try {
String serverIp = Minecraft.getMinecraft().getCurrentServerData().serverIP; String serverIp = Minecraft.getMinecraft().getCurrentServerData().serverIP.toLowerCase();
final String regex = "^(?:.*\\.)?hypixel\\.(?:net|io)\\.?"; final String regex = "^(?:.*\\.)?hypixel\\.(?:net|io)\\.?";
final Pattern pattern = Pattern.compile(regex, Pattern.MULTILINE); final Pattern pattern = Pattern.compile(regex, Pattern.MULTILINE);
@ -44,7 +44,7 @@ public class Server {
return false; return false;
} }
try { try {
String serverIp = Minecraft.getMinecraft().getCurrentServerData().serverIP; String serverIp = Minecraft.getMinecraft().getCurrentServerData().serverIP.toLowerCase();
final String regex = "^(?:.*\\.)?ruhypixel\\.(?:net)\\.?"; final String regex = "^(?:.*\\.)?ruhypixel\\.(?:net)\\.?";
final Pattern pattern = Pattern.compile(regex, Pattern.MULTILINE); final Pattern pattern = Pattern.compile(regex, Pattern.MULTILINE);