Dynamic sounds code cleanup (#264)
This commit is contained in:
parent
a5b5733965
commit
9f040b2c43
|
|
@ -37,11 +37,11 @@ public abstract class SoundBufferLibraryMixin {
|
||||||
if(notification.getCause() == RemovalCause.REPLACED && notification.getValue() == cache.get(notification.getKey()))
|
if(notification.getCause() == RemovalCause.REPLACED && notification.getValue() == cache.get(notification.getKey()))
|
||||||
return;
|
return;
|
||||||
notification.getValue().thenAccept(SoundBuffer::discardAlBuffer);
|
notification.getValue().thenAccept(SoundBuffer::discardAlBuffer);
|
||||||
if(debugDynamicSoundLoading) {
|
if(!debugDynamicSoundLoading)
|
||||||
K k = notification.getKey();
|
return;
|
||||||
if(k == null)
|
K k = notification.getKey();
|
||||||
return;
|
if(k == null)
|
||||||
ModernFix.LOGGER.warn("Evicted sound {}", k);
|
return;
|
||||||
}
|
ModernFix.LOGGER.warn("Evicted sound {}", k);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user