Allow command suggestions/autocomplete to search all modded paths at once without namespace provided (#10594)

This commit is contained in:
Joseph T. McQuigg authored and GitHub committed 2025-08-03 09:44:44 -07:00
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);
}
}