mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 19:15:32 +01:00
21 lines
897 B
Diff
21 lines
897 B
Diff
--- a/net/minecraft/server/EntitySelector.java
|
|
+++ b/net/minecraft/server/EntitySelector.java
|
|
@@ -63,7 +63,7 @@
|
|
}
|
|
|
|
private void e(CommandListenerWrapper commandlistenerwrapper) throws CommandSyntaxException {
|
|
- if (this.m && !commandlistenerwrapper.hasPermission(2)) {
|
|
+ if (this.m && !commandlistenerwrapper.hasPermission(2, "minecraft.command.selector")) { // CraftBukkit
|
|
throw ArgumentEntity.f.create();
|
|
}
|
|
}
|
|
@@ -139,7 +139,7 @@
|
|
AxisAlignedBB axisalignedbb = this.g.a(vec3d);
|
|
|
|
predicate.getClass();
|
|
- list.addAll(worldserver.a(oclass, axisalignedbb, predicate::test));
|
|
+ list.addAll(worldserver.a(oclass, axisalignedbb, (java.util.function.Predicate<Entity>) predicate::test)); // CraftBukkit - decompile error
|
|
} else {
|
|
oclass = this.l;
|
|
predicate.getClass();
|