Refactor dynamic sound debug if block

This commit is contained in:
Phoenix-Starlight 2023-10-14 14:56:13 -07:00
parent 8059fc4672
commit b62cc365b9

View File

@ -37,11 +37,11 @@ public abstract class SoundBufferLibraryMixin {
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);
}
}