mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 07:11:31 +01:00
Fix Bug Report: 1183433476591063080
This commit is contained in:
parent
71b4813db9
commit
a36a10df1f
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user