mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-28 03:19:14 +00:00
feat(core): 优化可读性
This commit is contained in:
@@ -48,18 +48,7 @@ public class I18NData {
|
||||
int validKeyCount = 0;
|
||||
for (Map.Entry<String, String> entry : data.entrySet()) {
|
||||
String key = entry.getKey();
|
||||
if (key != null && key.length() > 11 &&
|
||||
key.charAt(0) == 'b' &&
|
||||
key.charAt(1) == 'l' &&
|
||||
key.charAt(2) == 'o' &&
|
||||
key.charAt(3) == 'c' &&
|
||||
key.charAt(4) == 'k' &&
|
||||
key.charAt(5) == '_' &&
|
||||
key.charAt(6) == 'n' &&
|
||||
key.charAt(7) == 'a' &&
|
||||
key.charAt(8) == 'm' &&
|
||||
key.charAt(9) == 'e' &&
|
||||
key.charAt(10) == ':') {
|
||||
if (key != null && key.length() > 11 && key.startsWith("block_name:")) {
|
||||
keyBuffer[validKeyCount++] = key;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user