Pass predicate from default get hard colliding entities method

This commit is contained in:
Spottedleaf
2020-06-26 14:33:49 -07:00
parent 6e59ab0eb5
commit 9b3bb0cf51
5 changed files with 26 additions and 178 deletions

View File

@@ -157,7 +157,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ * Not guaranteed to only return hard colliding entites
+ */
+ default List<Entity> getHardCollidingEntities(@Nullable Entity entity, AxisAlignedBB axisalignedbb, Predicate<Entity> predicate) {
+ return this.getEntities(entity, axisalignedbb);
+ return this.getEntities(entity, axisalignedbb, predicate);
+ }
+ // Paper end - optimise hard collision
+