From 849bc79cac217c4ee043f1d9104511354b49a9e0 Mon Sep 17 00:00:00 2001 From: granny Date: Fri, 13 Jun 2025 22:06:35 -0700 Subject: [PATCH] register test subcommands used for debugging, closes #1675 --- .../gametest/framework/TestCommand.java.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 purpur-server/minecraft-patches/sources/net/minecraft/gametest/framework/TestCommand.java.patch diff --git a/purpur-server/minecraft-patches/sources/net/minecraft/gametest/framework/TestCommand.java.patch b/purpur-server/minecraft-patches/sources/net/minecraft/gametest/framework/TestCommand.java.patch new file mode 100644 index 000000000..f0d6efc60 --- /dev/null +++ b/purpur-server/minecraft-patches/sources/net/minecraft/gametest/framework/TestCommand.java.patch @@ -0,0 +1,11 @@ +--- a/net/minecraft/gametest/framework/TestCommand.java ++++ b/net/minecraft/gametest/framework/TestCommand.java +@@ -455,7 +_,7 @@ + ) + ) + ); +- if (SharedConstants.IS_RUNNING_IN_IDE) { ++ if (org.purpurmc.purpur.PurpurConfig.registerMinecraftDebugCommands || SharedConstants.IS_RUNNING_IN_IDE) { // Purpur - register minecraft debug commands + literalArgumentBuilder = literalArgumentBuilder.then( + Commands.literal("export") + .then(