Skip to content

Commit 41c54cb

Browse files
committed
Stop sound instance when entity is removed
1 parent 9981f90 commit 41c54cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/hlysine/create_connected/content/contraption/jukebox/ContraptionRecordSoundInstance.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public boolean canStartSilent() {
4444
@Override
4545
public void tick() {
4646
AbstractContraptionEntity entity = contraptionEntity.get();
47-
if (entity == null) {
47+
if (entity == null || entity.isRemoved()) {
4848
stop();
4949
return;
5050
}

0 commit comments

Comments
 (0)