Fixed pick up ability not functioning correctly

This commit is contained in:
Sollace 2022-01-02 17:37:43 +02:00
parent 15af4aa5ad
commit f5d4bfeb5e

View file

@ -18,7 +18,7 @@ import net.minecraft.util.math.Vec3d;
public class RayTraceHelper {
public static <T extends Entity> Optional<T> findEntity(Entity e, double distance, float tickDelta, Predicate<Entity> predicate) {
return doTrace(e, distance, tickDelta, EntityPredicates.CAN_COLLIDE.and(predicate)).getEntity();
return doTrace(e, distance, tickDelta, EntityPredicates.EXCEPT_CREATIVE_OR_SPECTATOR.and(predicate)).getEntity();
}
/**