Skip to content

Commit

Permalink
Fix suffocation issue at the expense of performance
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadiboo committed Apr 12, 2024
1 parent 0759b56 commit 1f1bb98
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static VoxelShape getCollisionShapeOrThrow(boolean canCollide, BlockState

var entity = context.getEntity();
if (entity instanceof FallingBlockEntity || // Stop sand etc. breaking when it falls
(NoCubesConfig.Server.tempMobCollisionsDisabled && !(entity instanceof Player)) ||
(entity != null && NoCubesConfig.Server.tempMobCollisionsDisabled && !(entity instanceof Player)) ||
// Stop grass path turning to dirt causing a crash from trying to turn an empty VoxelShape into an AABB
(entity == null && reader.getBlockState(blockPos) != state)
)
Expand Down

0 comments on commit 1f1bb98

Please sign in to comment.