From ee6835c279a278db3815463c6138503da5a2519d Mon Sep 17 00:00:00 2001 From: johni0702 Date: Thu, 13 Aug 2015 09:52:04 +0200 Subject: [PATCH] Fix sound level map becoming null --- .../java/eu/crushedpixel/replaymod/replay/ReplayProcess.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/crushedpixel/replaymod/replay/ReplayProcess.java b/src/main/java/eu/crushedpixel/replaymod/replay/ReplayProcess.java index 17807bb1..375a3371 100755 --- a/src/main/java/eu/crushedpixel/replaymod/replay/ReplayProcess.java +++ b/src/main/java/eu/crushedpixel/replaymod/replay/ReplayProcess.java @@ -183,7 +183,9 @@ public class ReplayProcess { Display.setResizable(true); //restore the sound settings - mc.gameSettings.mapSoundLevels = mapSoundLevelsBefore; + if (mapSoundLevelsBefore != null) { + mc.gameSettings.mapSoundLevels = mapSoundLevelsBefore; + } } //if justCheck is true, no Screenshot will be taken, it will only be checked