Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-23 23:00:08 +01:00
21 Zeilen
897 B
Diff
21 Zeilen
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();
|