42d870e32b
Signed-off-by: MrHua269 <mrhua269@gmail.com>
58 lines
3.7 KiB
Diff
58 lines
3.7 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: MrHua269 <mrhua269@gmail.com>
|
|
Date: Sat, 2 May 2026 22:53:17 +0800
|
|
Subject: [PATCH] Transformed Configs
|
|
|
|
|
|
diff --git a/src/main/java/me/earthme/luminol/config/modules/experiment/CommandConfig.java b/src/main/java/me/earthme/luminol/config/modules/experiment/CommandConfig.java
|
|
index 30f78cbae7aea3e9fcee6d97f229ddf8e8344299..7da4c1ee037315437c752544ab7e1f6d242fe3e4 100644
|
|
--- a/src/main/java/me/earthme/luminol/config/modules/experiment/CommandConfig.java
|
|
+++ b/src/main/java/me/earthme/luminol/config/modules/experiment/CommandConfig.java
|
|
@@ -4,6 +4,7 @@ import me.earthme.luminol.config.IConfigModule;
|
|
import me.earthme.luminol.config.flags.ConfigClassInfo;
|
|
import me.earthme.luminol.config.flags.ConfigInfo;
|
|
import me.earthme.luminol.config.flags.HotReloadUnsupported;
|
|
+import me.earthme.luminol.config.flags.TransformedConfig;
|
|
import me.earthme.luminol.enums.EnumConfigCategory;
|
|
|
|
@ConfigClassInfo(category = EnumConfigCategory.EXPERIMENT, name = "command")
|
|
@@ -11,12 +12,17 @@ public class CommandConfig implements IConfigModule {
|
|
@ConfigInfo(name = "enable_data_command")
|
|
@HotReloadUnsupported
|
|
public static boolean data = false;
|
|
+ @TransformedConfig(name = "command_block_enabled", directory = {"experiment", "command"}, originInstance = "lophine")
|
|
+ @TransformedConfig(name = "enabled", directory = {"experiment", "force_enable_command_block_command_execution"})
|
|
@ConfigInfo(name = "enable_command_block", comments = """
|
|
Force to enable command blocks.
|
|
ATTENTION: WOULD CAUSE SERVER CRASHING AS SOME THREADING ISSUE!!!
|
|
DO NOT ENABLE UNLESS YOU KNOW WHAT YOU ARE DOING!!!
|
|
""")
|
|
public static boolean commandBlock = false;
|
|
+ @TransformedConfig(name = "enable-waypoint", directory = {"experiment", "waypoint bar"}, originInstance = "lophine")
|
|
+ @TransformedConfig(name = "enable-waypoint", directory = {"experiment", "waypoint_bar"}, originInstance = "lophine")
|
|
+ @TransformedConfig(name = "waypoint_command_enabled", directory = {"experiment", "command"}, originInstance = "lophine")
|
|
@ConfigInfo(name = "enable_waypoints_and_waypoint_command", comments = """
|
|
Enable waypoint and waypoint command.
|
|
WARN: Still under testing
|
|
diff --git a/src/main/java/me/earthme/luminol/config/modules/misc/PaperPacketLimiterConfig.java b/src/main/java/me/earthme/luminol/config/modules/misc/PaperPacketLimiterConfig.java
|
|
index e80d1784a7b136d26020c721a851c1275423c763..d5f99fd672e33c16fc3c3e2031ce2e5a5001ab55 100644
|
|
--- a/src/main/java/me/earthme/luminol/config/modules/misc/PaperPacketLimiterConfig.java
|
|
+++ b/src/main/java/me/earthme/luminol/config/modules/misc/PaperPacketLimiterConfig.java
|
|
@@ -3,6 +3,7 @@ package me.earthme.luminol.config.modules.misc;
|
|
import me.earthme.luminol.config.IConfigModule;
|
|
import me.earthme.luminol.config.flags.ConfigClassInfo;
|
|
import me.earthme.luminol.config.flags.ConfigInfo;
|
|
+import me.earthme.luminol.config.flags.TransformedConfig;
|
|
import me.earthme.luminol.enums.EnumConfigCategory;
|
|
|
|
@ConfigClassInfo(category = EnumConfigCategory.MISC, name = "force_disable_packet_limiter_of_paper", comments =
|
|
@@ -10,6 +11,8 @@ import me.earthme.luminol.enums.EnumConfigCategory;
|
|
"has negative impacts on security"
|
|
)
|
|
public class PaperPacketLimiterConfig implements IConfigModule {
|
|
+ @TransformedConfig(name = "unlimit-packet", directory = {"misc", "network"}, originInstance = "lophine")
|
|
+ @TransformedConfig(name = "force_disable", directory = {"optimizations", "force_disable_packet_limiter_of_paper"})
|
|
@ConfigInfo(name = "force_disable")
|
|
public static boolean forceDisable = false;
|
|
}
|