Skip to content

Commit b7ae204

Browse files
committed
Fix sound not stopping
1 parent aee3d20 commit b7ae204

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/dev/hephaestus/glowcase/block/entity/SoundPlayerBlockEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public void setDone() {
171171
@Override
172172
public void tick() {
173173
// stops track-stacking when reloading the block
174-
if (!inRange() || !(this.player.getWorld().getBlockEntity(this.soundBlockPos) instanceof SoundPlayerBlockEntity be && !this.isDifferentFrom(be.nowPlaying))) {
174+
if (!inRange() || !(this.player.getWorld().getBlockEntity(this.soundBlockPos) instanceof SoundPlayerBlockEntity be && this == be.nowPlaying)) {
175175
setDone();
176176
}
177177
}

0 commit comments

Comments
 (0)