1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-11-18 06:05:12 +00:00

Merge pull request #1761 from cc-tweaked/feature/no-play-record

Prevent playing music discs with speaker.playSound
This commit is contained in:
Jonathan Coates
2024-03-29 07:55:31 +00:00
committed by GitHub
3 changed files with 159 additions and 8 deletions

View File

@@ -29,4 +29,15 @@ class Speaker_Test {
}
}
}
/**
* [SpeakerPeripheral.playSound] will not play records.
*/
@GameTest
fun Will_not_play_record(helper: GameTestHelper) = helper.sequence {
thenOnComputer {
callPeripheral("right", "playSound", SoundEvents.MUSIC_DISC_PIGSTEP.location.toString())
.assertArrayEquals(false)
}
}
}