aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-spigotflower-stripped/net/minecraft/commands/arguments/EntityArgument.java.patch
blob: 41ac8518395dbd40e76ac47e23fbc222b794a5b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- a/net/minecraft/commands/arguments/EntityArgument.java
+++ b/net/minecraft/commands/arguments/EntityArgument.java
@@ -93,11 +93,16 @@
         }
     }
 
-    @Override
-    public EntitySelector parse(StringReader stringreader) throws CommandSyntaxException {
+    public EntitySelector parse(StringReader reader) throws CommandSyntaxException {
+        // CraftBukkit start
+        return parse(reader, false);
+    }
+
+    public EntitySelector parse(StringReader stringreader, boolean overridePermissions) throws CommandSyntaxException {
+        // CraftBukkit end
         boolean flag = false;
-        EntitySelectorParser entityselectorparser = new EntitySelectorParser(stringreader);
-        EntitySelector entityselector = entityselectorparser.parse();
+        EntitySelectorParser argumentparserselector = new EntitySelectorParser(stringreader);
+        EntitySelector entityselector = argumentparserselector.parse(overridePermissions); // CraftBukkit
 
         if (entityselector.getMaxResults() > 1 && this.single) {
             if (this.playersOnly) {