fix(fabric): avoid pottery pattern registry overriding default string parser for annotations
This commit is contained in:
parent
5bd2b90d02
commit
897eafba79
1 changed files with 1 additions and 0 deletions
|
|
@ -217,6 +217,7 @@ public abstract class FabricCommandManager<C, S extends SharedSuggestionProvider
|
||||||
* Eventually, these could be resolved by using ParserParameters in some way? */
|
* Eventually, these could be resolved by using ParserParameters in some way? */
|
||||||
seenClasses.add(ResourceLocation.class);
|
seenClasses.add(ResourceLocation.class);
|
||||||
seenClasses.add(Codec.class);
|
seenClasses.add(Codec.class);
|
||||||
|
seenClasses.add(String.class); // avoid pottery pattern registry overriding default string parser
|
||||||
for (final Field field : Registries.class.getDeclaredFields()) {
|
for (final Field field : Registries.class.getDeclaredFields()) {
|
||||||
if ((field.getModifiers() & MOD_PUBLIC_STATIC_FINAL) != MOD_PUBLIC_STATIC_FINAL) {
|
if ((field.getModifiers() & MOD_PUBLIC_STATIC_FINAL) != MOD_PUBLIC_STATIC_FINAL) {
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue