Skip to content

Commit

Permalink
Was that a Mixin bug?
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Jul 7, 2023
1 parent b667bea commit acdd2ef
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
@Mixin(BlockCollisions.class)
public class BlockCollisionsMixin<T> implements BlockCollisionsExt<T> {
@Unique
private VoxelShape pc$portalCutout = Shapes.empty();
private VoxelShape pc$portalCutout;
@Unique
private VoxelShape pc$crossCollision = Shapes.empty();
private VoxelShape pc$crossCollision;

@Override
@SuppressWarnings("unchecked")
Expand All @@ -46,10 +46,10 @@ private VoxelShape applyCollisionShape(
return Shapes.joinUnoptimized(
Shapes.joinUnoptimized(
original.call(instance, level, pos, context),
pc$portalCutout.move(-x, -y, -z),
(pc$portalCutout != null ? pc$portalCutout : Shapes.empty()).move(-x, -y, -z),
BooleanOp.ONLY_FIRST
),
pc$crossCollision.move(-x, -y, -z),
(pc$crossCollision != null ? pc$crossCollision : Shapes.empty()).move(-x, -y, -z),
BooleanOp.OR
);
}
Expand Down

0 comments on commit acdd2ef

Please sign in to comment.