2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/level/RayTrace.java
|
|
|
|
+++ b/net/minecraft/world/level/RayTrace.java
|
2023-12-05 17:40:00 +01:00
|
|
|
@@ -22,7 +22,7 @@
|
|
|
|
private final VoxelShapeCollision collisionContext;
|
|
|
|
|
|
|
|
public RayTrace(Vec3D vec3d, Vec3D vec3d1, RayTrace.BlockCollisionOption raytrace_blockcollisionoption, RayTrace.FluidCollisionOption raytrace_fluidcollisionoption, Entity entity) {
|
|
|
|
- this(vec3d, vec3d1, raytrace_blockcollisionoption, raytrace_fluidcollisionoption, VoxelShapeCollision.of(entity));
|
|
|
|
+ this(vec3d, vec3d1, raytrace_blockcollisionoption, raytrace_fluidcollisionoption, (entity == null) ? VoxelShapeCollision.empty() : VoxelShapeCollision.of(entity)); // CraftBukkit
|
2019-04-23 04:00:00 +02:00
|
|
|
}
|
|
|
|
|
2023-12-05 17:40:00 +01:00
|
|
|
public RayTrace(Vec3D vec3d, Vec3D vec3d1, RayTrace.BlockCollisionOption raytrace_blockcollisionoption, RayTrace.FluidCollisionOption raytrace_fluidcollisionoption, VoxelShapeCollision voxelshapecollision) {
|
|
|
|
@@ -79,7 +79,7 @@
|
2019-04-23 04:00:00 +02:00
|
|
|
|
2021-06-11 07:00:00 +02:00
|
|
|
private final Predicate<Fluid> canPick;
|
2019-04-23 04:00:00 +02:00
|
|
|
|
2024-04-23 17:15:00 +02:00
|
|
|
- private FluidCollisionOption(final Predicate predicate) {
|
|
|
|
+ private FluidCollisionOption(final Predicate<Fluid> predicate) { // CraftBukkit - decompile error
|
2021-06-11 07:00:00 +02:00
|
|
|
this.canPick = predicate;
|
2019-04-23 04:00:00 +02:00
|
|
|
}
|
|
|
|
|