mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2026-01-04 15:41:38 +00:00
增强发包稳定性
This commit is contained in:
@@ -21,7 +21,7 @@ dependencies {
|
||||
implementation("net.momirealms:sparrow-nbt-codec:${rootProject.properties["sparrow_nbt_version"]}")
|
||||
implementation("net.momirealms:sparrow-nbt-legacy-codec:${rootProject.properties["sparrow_nbt_version"]}")
|
||||
// S3
|
||||
implementation("net.momirealms:craft-engine-s3:0.2")
|
||||
implementation("net.momirealms:craft-engine-s3:0.3")
|
||||
// Util
|
||||
compileOnly("net.momirealms:sparrow-util:${rootProject.properties["sparrow_util_version"]}")
|
||||
// Adventure
|
||||
|
||||
@@ -52,6 +52,7 @@ public class Config {
|
||||
protected boolean debug$packet;
|
||||
protected boolean debug$item;
|
||||
protected boolean debug$furniture;
|
||||
protected boolean debug$resource_pack;
|
||||
|
||||
protected boolean resource_pack$remove_tinted_leaves_particle;
|
||||
protected boolean resource_pack$generate_mod_assets;
|
||||
@@ -245,6 +246,7 @@ public class Config {
|
||||
debug$packet = config.getBoolean("debug.packet", false);
|
||||
debug$item = config.getBoolean("debug.item", false);
|
||||
debug$furniture = config.getBoolean("debug.furniture", false);
|
||||
debug$resource_pack = config.getBoolean("debug.resource-pack", false);
|
||||
|
||||
// resource pack
|
||||
resource_pack$override_uniform_font = config.getBoolean("resource-pack.override-uniform-font", false);
|
||||
@@ -426,6 +428,10 @@ public class Config {
|
||||
return instance.debug$furniture;
|
||||
}
|
||||
|
||||
public static boolean debugResourcePack() {
|
||||
return instance.debug$resource_pack;
|
||||
}
|
||||
|
||||
public static boolean checkUpdate() {
|
||||
return instance.checkUpdate;
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ public enum Debugger {
|
||||
COMMON(Config::debugCommon),
|
||||
PACKET(Config::debugPacket),
|
||||
FURNITURE(Config::debugFurniture),
|
||||
RESOURCE_PACK(Config::debugFurniture),
|
||||
ITEM(Config::debugItem);
|
||||
|
||||
private final Supplier<Boolean> condition;
|
||||
|
||||
Reference in New Issue
Block a user