mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-19 15:09:15 +00:00
@@ -28,6 +28,7 @@ resource-pack:
|
||||
seed: 0 # 0 = random seed
|
||||
fake-directory: true
|
||||
escape-unicode: true
|
||||
break-json: true
|
||||
resource-location:
|
||||
enable: true
|
||||
random-namespace:
|
||||
|
||||
@@ -54,6 +54,7 @@ public class ConfigManager implements Reloadable {
|
||||
protected long resource_pack$protection$obfuscation$seed;
|
||||
protected boolean resource_pack$protection$obfuscation$fake_directory;
|
||||
protected boolean resource_pack$protection$obfuscation$escape_unicode;
|
||||
protected boolean resource_pack$protection$obfuscation$break_json;
|
||||
protected boolean resource_pack$protection$obfuscation$resource_location$enable;
|
||||
protected int resource_pack$protection$obfuscation$resource_location$random_namespace$length;
|
||||
protected int resource_pack$protection$obfuscation$resource_location$random_namespace$amount;
|
||||
@@ -200,6 +201,7 @@ public class ConfigManager implements Reloadable {
|
||||
resource_pack$protection$obfuscation$seed = config.getLong("resource-pack.protection.obfuscation.seed", 0L);
|
||||
resource_pack$protection$obfuscation$fake_directory = config.getBoolean("resource-pack.protection.obfuscation.fake-directory", false);
|
||||
resource_pack$protection$obfuscation$escape_unicode = config.getBoolean("resource-pack.protection.obfuscation.escape-unicode", false);
|
||||
resource_pack$protection$obfuscation$break_json = config.getBoolean("resource-pack.protection.obfuscation.break-json", false);
|
||||
|
||||
resource_pack$protection$obfuscation$resource_location$enable = config.getBoolean("resource-pack.protection.obfuscation.resource-location.enable", false);
|
||||
resource_pack$protection$obfuscation$resource_location$random_namespace$amount = config.getInt("resource-pack.protection.obfuscation.resource-location.random-namespace.amount", 32);
|
||||
@@ -435,6 +437,10 @@ public class ConfigManager implements Reloadable {
|
||||
return instance.resource_pack$protection$obfuscation$escape_unicode;
|
||||
}
|
||||
|
||||
public static boolean breakJson() {
|
||||
return instance.resource_pack$protection$obfuscation$break_json;
|
||||
}
|
||||
|
||||
public static boolean enableRandomResourceLocation() {
|
||||
return instance.resource_pack$protection$obfuscation$resource_location$enable;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Project settings
|
||||
# Rule: [major update].[feature update].[bug fix]
|
||||
project_version=0.0.35
|
||||
config_version=14
|
||||
project_version=0.0.36
|
||||
config_version=15
|
||||
lang_version=3
|
||||
project_group=net.momirealms
|
||||
latest_minecraft_version=1.21.4
|
||||
|
||||
Reference in New Issue
Block a user