mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-19 15:09:15 +00:00
修复开发集成服务器控制台输出中文编码问题
This commit is contained in:
@@ -217,6 +217,9 @@ fun registerPaperTask(
|
||||
languageVersion = JavaLanguageVersion.of(javaVersion)
|
||||
}
|
||||
systemProperties["com.mojang.eula.agree"] = true
|
||||
systemProperties["net.momirealms.craftengine.dev"] = true
|
||||
jvmArgs("-Dsun.stdout.encoding=UTF-8")
|
||||
jvmArgs("-Dsun.stderr.encoding=UTF-8")
|
||||
jvmArgs("-Ddisable.watchdog=true")
|
||||
jvmArgs("-Xlog:redefine+class*=info")
|
||||
jvmArgs("-XX:+AllowEnhancedClassRedefinition")
|
||||
|
||||
@@ -9,6 +9,7 @@ import java.util.Objects;
|
||||
|
||||
public class VersionHelper {
|
||||
public static final boolean PREMIUM = true;
|
||||
public static final boolean IS_RUNNING_IN_DEV = Boolean.getBoolean("net.momirealms.craftengine.dev");
|
||||
public static final MinecraftVersion MINECRAFT_VERSION;
|
||||
public static final boolean COMPONENT_RELEASE;
|
||||
private static final int version;
|
||||
|
||||
Reference in New Issue
Block a user