mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
8398e12b34
By: md_5 <git@md-5.net>
11 lines
857 B
Diff
11 lines
857 B
Diff
--- a/net/minecraft/world/entity/IEntitySelector.java
|
|
+++ b/net/minecraft/world/entity/IEntitySelector.java
|
|
@@ -44,7 +44,7 @@
|
|
ScoreboardTeamBase.EnumTeamPush scoreboardteambase_enumteampush = scoreboardteam == null ? ScoreboardTeamBase.EnumTeamPush.ALWAYS : scoreboardteam.getCollisionRule();
|
|
|
|
return (Predicate) (scoreboardteambase_enumteampush == ScoreboardTeamBase.EnumTeamPush.NEVER ? Predicates.alwaysFalse() : IEntitySelector.NO_SPECTATORS.and((entity1) -> {
|
|
- if (!entity1.isPushable()) {
|
|
+ if (!entity1.canCollideWithBukkit(entity) || !entity.canCollideWithBukkit(entity1)) { // CraftBukkit - collidable API
|
|
return false;
|
|
} else if (entity.level().isClientSide && (!(entity1 instanceof EntityHuman) || !((EntityHuman) entity1).isLocalPlayer())) {
|
|
return false;
|