Skip to content

Commit

Permalink
Fixed sounds playing in spectator mode. Closes ##121
Browse files Browse the repository at this point in the history
  • Loading branch information
Sollace committed Mar 4, 2022
1 parent c9b43e1 commit 3423bd4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ private Stream<? extends Entity> getTargets(Entity cameraEntity) {
&& !(e instanceof FlyingEntity)
&& !e.hasVehicle()
&& !((LivingEntity)e).isSleeping()
&& (!(e instanceof PlayerEntity) || !((PlayerEntity)e).isSpectator())
&& e.distanceTo(cameraEntity) <= 16
&& (config.getEnabledGlobal() || (e instanceof PlayerEntity));
}).stream();
Expand Down

0 comments on commit 3423bd4

Please sign in to comment.