2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/entity/IEntitySelector.java
|
|
|
|
+++ b/net/minecraft/world/entity/IEntitySelector.java
|
2023-12-05 17:40:00 +01:00
|
|
|
@@ -44,7 +44,7 @@
|
|
|
|
ScoreboardTeamBase.EnumTeamPush scoreboardteambase_enumteampush = scoreboardteam == null ? ScoreboardTeamBase.EnumTeamPush.ALWAYS : scoreboardteam.getCollisionRule();
|
2020-06-25 02:00:00 +02:00
|
|
|
|
2021-06-11 07:00:00 +02:00
|
|
|
return (Predicate) (scoreboardteambase_enumteampush == ScoreboardTeamBase.EnumTeamPush.NEVER ? Predicates.alwaysFalse() : IEntitySelector.NO_SPECTATORS.and((entity1) -> {
|
2021-11-21 23:00:00 +01:00
|
|
|
- if (!entity1.isPushable()) {
|
2021-06-11 07:00:00 +02:00
|
|
|
+ if (!entity1.canCollideWithBukkit(entity) || !entity.canCollideWithBukkit(entity1)) { // CraftBukkit - collidable API
|
2020-06-25 02:00:00 +02:00
|
|
|
return false;
|
2023-06-07 17:30:00 +02:00
|
|
|
} else if (entity.level().isClientSide && (!(entity1 instanceof EntityHuman) || !((EntityHuman) entity1).isLocalPlayer())) {
|
2020-06-25 02:00:00 +02:00
|
|
|
return false;
|