change allowlist implementation to HashMap & don't leak the implementation outside of the ServerProperties class

This commit is contained in:
Tad Hunt
2022-11-06 09:54:54 -07:00
parent 2c2285b54c
commit a797e89c14
2 changed files with 13 additions and 11 deletions
+4 -6
View File
@@ -442,13 +442,11 @@ public class Limbo {
return true;
}
for (UUID allowedUuid : properties.getAllowlist()) {
if (requestedUuid.equals(allowedUuid)) {
if(!properties.isReducedDebugInfo()) {
Limbo.getInstance().getConsole().sendMessage(String.format("allowlist: %s allowed", requestedUuid.toString()));
}
return true;
if (properties.uuidIsAllowed(requestedUuid)) {
if(!properties.isReducedDebugInfo()) {
Limbo.getInstance().getConsole().sendMessage(String.format("allowlist: %s allowed", requestedUuid.toString()));
}
return true;
}
if(!properties.isReducedDebugInfo()) {