File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ index ad99d67af92cda03beb1142b02082ee1bfc8a64a..a57ae219d57ed47baedfb73b3d815f39
97
97
this.level = MinMaxBounds.Ints.ANY;
98
98
this.rotX = WrappedMinMaxBounds.ANY;
99
99
diff --git a/src/main/java/net/minecraft/commands/arguments/selector/options/EntitySelectorOptions.java b/src/main/java/net/minecraft/commands/arguments/selector/options/EntitySelectorOptions.java
100
- index c2b26a089c423e5df9a5cbfd1c70efbd1acb0e7a..4200ce431e07aa3e6d05702d184ad85b4fef01a8 100644
100
+ index c2b26a089c423e5df9a5cbfd1c70efbd1acb0e7a..f2376374c4c6efdfd5cfcea4d30c4b8b4dbbb0d5 100644
101
101
--- a/src/main/java/net/minecraft/commands/arguments/selector/options/EntitySelectorOptions.java
102
102
+++ b/src/main/java/net/minecraft/commands/arguments/selector/options/EntitySelectorOptions.java
103
103
@@ -67,6 +67,19 @@ public class EntitySelectorOptions {
@@ -125,7 +125,7 @@ index c2b26a089c423e5df9a5cbfd1c70efbd1acb0e7a..4200ce431e07aa3e6d05702d184ad85b
125
125
if (reader.isTag()) {
126
126
TagKey<EntityType<?>> tagKey = TagKey.create(Registry.ENTITY_TYPE_REGISTRY, ResourceLocation.read(reader.getReader()));
127
127
+ // Paper start - throw error if invalid entity tag (only on suggestions to keep cmd success behavior)
128
- + if (io.papermc.paper.configuration.GlobalConfiguration.get().commands.fixTargetSelectorTagCompletion && reader.parsingEntityArgumentSuggestions && !Registry.ENTITY_TYPE.isKnownTagName(tagKey)) {
128
+ + if (reader.parsingEntityArgumentSuggestions && io.papermc.paper.configuration.GlobalConfiguration.get().commands.fixTargetSelectorTagCompletion && !Registry.ENTITY_TYPE.isKnownTagName(tagKey)) {
129
129
+ reader.getReader().setCursor(i);
130
130
+ throw ERROR_ENTITY_TAG_INVALID.createWithContext(reader.getReader(), tagKey);
131
131
+ }
You can’t perform that action at this time.
0 commit comments