Skip to content

Commit 9f040b2

Browse files
Dynamic sounds code cleanup (#264)
1 parent a5b5733 commit 9f040b2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

common/src/main/java/org/embeddedt/modernfix/common/mixin/perf/dynamic_sounds/SoundBufferLibraryMixin.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ private <K extends ResourceLocation, V extends CompletableFuture<SoundBuffer>> v
3737
if(notification.getCause() == RemovalCause.REPLACED && notification.getValue() == cache.get(notification.getKey()))
3838
return;
3939
notification.getValue().thenAccept(SoundBuffer::discardAlBuffer);
40-
if(debugDynamicSoundLoading) {
41-
K k = notification.getKey();
42-
if(k == null)
43-
return;
44-
ModernFix.LOGGER.warn("Evicted sound {}", k);
45-
}
40+
if(!debugDynamicSoundLoading)
41+
return;
42+
K k = notification.getKey();
43+
if(k == null)
44+
return;
45+
ModernFix.LOGGER.warn("Evicted sound {}", k);
4646
}
4747
}

0 commit comments

Comments
 (0)