diff options
Diffstat (limited to 'patch-remap/og/net/minecraft/commands/arguments/ArgumentEntity.patch')
-rw-r--r-- | patch-remap/og/net/minecraft/commands/arguments/ArgumentEntity.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/commands/arguments/ArgumentEntity.patch b/patch-remap/og/net/minecraft/commands/arguments/ArgumentEntity.patch new file mode 100644 index 0000000000..fe7d5cb425 --- /dev/null +++ b/patch-remap/og/net/minecraft/commands/arguments/ArgumentEntity.patch @@ -0,0 +1,19 @@ +--- a/net/minecraft/commands/arguments/ArgumentEntity.java ++++ b/net/minecraft/commands/arguments/ArgumentEntity.java +@@ -94,9 +94,15 @@ + } + + public EntitySelector parse(StringReader stringreader) throws CommandSyntaxException { ++ // CraftBukkit start ++ return parse(stringreader, false); ++ } ++ ++ public EntitySelector parse(StringReader stringreader, boolean overridePermissions) throws CommandSyntaxException { ++ // CraftBukkit end + boolean flag = false; + ArgumentParserSelector argumentparserselector = new ArgumentParserSelector(stringreader); +- EntitySelector entityselector = argumentparserselector.parse(); ++ EntitySelector entityselector = argumentparserselector.parse(overridePermissions); // CraftBukkit + + if (entityselector.getMaxResults() > 1 && this.single) { + if (this.playersOnly) { |