mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 05:47:59 +01:00
Fixed pick up ability not functioning correctly
This commit is contained in:
parent
15af4aa5ad
commit
f5d4bfeb5e
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue