From d00f5c4013cdb93c094aa34d73892f942e3cd228 Mon Sep 17 00:00:00 2001 From: "Joseph T. McQuigg" Date: Sun, 3 Aug 2025 12:55:59 -0400 Subject: [PATCH] Allow command suggestions/autocomplete to search all modded paths at once without namespace provided (#10595) --- .../commands/SharedSuggestionProvider.java.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 patches/minecraft/net/minecraft/commands/SharedSuggestionProvider.java.patch diff --git a/patches/minecraft/net/minecraft/commands/SharedSuggestionProvider.java.patch b/patches/minecraft/net/minecraft/commands/SharedSuggestionProvider.java.patch new file mode 100644 index 0000000000..182a49408d --- /dev/null +++ b/patches/minecraft/net/minecraft/commands/SharedSuggestionProvider.java.patch @@ -0,0 +1,11 @@ +--- a/net/minecraft/commands/SharedSuggestionProvider.java ++++ b/net/minecraft/commands/SharedSuggestionProvider.java +@@ -82,7 +_,7 @@ + if (m_82949_(p_82946_, s)) { + p_82948_.accept(t); + } +- } else if (m_82949_(p_82946_, resourcelocation.m_135827_()) || resourcelocation.m_135827_().equals("minecraft") && m_82949_(p_82946_, resourcelocation.m_135815_())) { ++ } else if (m_82949_(p_82946_, resourcelocation.m_135827_()) || m_82949_(p_82946_, resourcelocation.m_135815_())) { // Forge: Removed "minecraft" namespace requirement for path searching to allow modded path suggestions to show up + p_82948_.accept(t); + } + }