aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-spigotflower-stripped/net/minecraft/commands/arguments/EntityArgument.java.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/mache-spigotflower-stripped/net/minecraft/commands/arguments/EntityArgument.java.patch')
-rw-r--r--patch-remap/mache-spigotflower-stripped/net/minecraft/commands/arguments/EntityArgument.java.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower-stripped/net/minecraft/commands/arguments/EntityArgument.java.patch b/patch-remap/mache-spigotflower-stripped/net/minecraft/commands/arguments/EntityArgument.java.patch
new file mode 100644
index 0000000000..41ac851839
--- /dev/null
+++ b/patch-remap/mache-spigotflower-stripped/net/minecraft/commands/arguments/EntityArgument.java.patch
@@ -0,0 +1,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) {