mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 16:54:22 +00:00
Allow command suggestions/autocomplete to search all modded paths at once without namespace provided (#10594)
This commit is contained in:
1 parent
86e2a11c8e
commit
e2a81d278c
1 file changed
+11
@@ -0,0 +1,11 @@
|
||||
--- a/net/minecraft/commands/SharedSuggestionProvider.java
|
||||
+++ b/net/minecraft/commands/SharedSuggestionProvider.java
|
||||
@@ -87,7 +_,7 @@
|
||||
p_82948_.accept(t);
|
||||
}
|
||||
} else if (matchesSubStr(p_82946_, resourcelocation.getNamespace())
|
||||
- || resourcelocation.getNamespace().equals("minecraft") && matchesSubStr(p_82946_, resourcelocation.getPath())) {
|
||||
+ || matchesSubStr(p_82946_, resourcelocation.getPath())) { // 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