mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-13 09:18:05 -04:00
Null check in Sound handler in case of partial initializations.
This commit is contained in:
parent
816ab0c542
commit
cbfa615070
@ -53,7 +53,7 @@ object Sound {
|
|||||||
// Set in init event.
|
// Set in init event.
|
||||||
var manager: SoundManager = _
|
var manager: SoundManager = _
|
||||||
|
|
||||||
def soundSystem = manager.sndSystem
|
def soundSystem = if (manager != null) manager.sndSystem else null
|
||||||
|
|
||||||
private def updateVolume() {
|
private def updateVolume() {
|
||||||
val volume =
|
val volume =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user