From 4957f0b7d7cc8b06fe6bdb6883a48dbeb2e41ad5 Mon Sep 17 00:00:00 2001 From: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> Date: Sat, 25 Feb 2023 15:00:39 +0000 Subject: Fix NPE when swapping islands (#634) --- .../github/moulberry/notenoughupdates/miscfeatures/MutingComposter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') 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; } -- cgit