Skip to content

Commit

Permalink
Dynamic sounds code cleanup (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
Phoenix-Starlight committed Oct 15, 2023
1 parent a5b5733 commit 9f040b2
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ private <K extends ResourceLocation, V extends CompletableFuture<SoundBuffer>> v
if(notification.getCause() == RemovalCause.REPLACED && notification.getValue() == cache.get(notification.getKey()))
return;
notification.getValue().thenAccept(SoundBuffer::discardAlBuffer);
if(debugDynamicSoundLoading) {
K k = notification.getKey();
if(k == null)
return;
ModernFix.LOGGER.warn("Evicted sound {}", k);
}
if(!debugDynamicSoundLoading)
return;
K k = notification.getKey();
if(k == null)
return;
ModernFix.LOGGER.warn("Evicted sound {}", k);
}
}

0 comments on commit 9f040b2

Please sign in to comment.