aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2023-02-25 15:00:39 +0000
committerGitHub <noreply@github.com>2023-02-25 16:00:39 +0100
commit4957f0b7d7cc8b06fe6bdb6883a48dbeb2e41ad5 (patch)
tree5fa0148f119ddbe67ff0a3432dd497ad9671c3d7 /src
parent991854cd34f0fa9cb8b85a091df33c459df415a6 (diff)
downloadNotEnoughUpdates-4957f0b7d7cc8b06fe6bdb6883a48dbeb2e41ad5.tar.gz
NotEnoughUpdates-4957f0b7d7cc8b06fe6bdb6883a48dbeb2e41ad5.tar.bz2
NotEnoughUpdates-4957f0b7d7cc8b06fe6bdb6883a48dbeb2e41ad5.zip
Fix NPE when swapping islands (#634)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/MutingComposter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/MutingComposter.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/MutingComposter.java
index 4b4d655b..e2aa8cf2 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/MutingComposter.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/MutingComposter.java
@@ -44,7 +44,7 @@ public class MutingComposter {
}
protected boolean isEnabled() {
- return SBInfo.getInstance().getLocation().equals("garden")
+ return "garden".equals(SBInfo.getInstance().getLocation())
&& NotEnoughUpdates.INSTANCE.config.garden.muteComposterSounds;
}