USID fixes

This commit is contained in:
Anuken
2020-02-11 12:36:28 -05:00
parent d1840e7c2a
commit d99f9740e8
2 changed files with 7 additions and 1 deletions

View File

@@ -567,6 +567,11 @@ public class NetClient implements ApplicationListener{
}
String getUsid(String ip){
//consistently use the latter part of an IP, if possible
if(ip.contains("/")){
ip = ip.substring(ip.indexOf("/") + 1);
}
if(Core.settings.getString("usid-" + ip, null) != null){
return Core.settings.getString("usid-" + ip, null);
}else{