Refine codes (#2122)

This commit is contained in:
LoveSy 2022-09-15 10:18:27 +08:00 committed by GitHub
parent c1aa00e71b
commit 811d3e49c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -378,10 +378,9 @@ public class ConfigFileManager {
var signatures = ObfuscationManager.getSignatures();
for (int i = 0; i < moduleClassNames.size(); i++) {
var s = moduleClassNames.get(i);
for (String key : signatures.keySet()) {
if (s.startsWith(key)) {
// value should not be null, but idk how to ignore this warning
moduleClassNames.add(i, s.replace(key, signatures.get(key)));
for (var entry : signatures.entrySet()) {
if (s.startsWith(entry.getKey())) {
moduleClassNames.add(i, s.replace(entry.getKey(), entry.getValue()));
}
}
}