mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
Allow command suggestions/autocomplete to search all modded paths at once without namespace provided (#10595)
This commit is contained in:
1 parent
f4e8c6b67e
commit
d00f5c4013
1 file changed
+11
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user