mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-08 21:14:41 -04:00
Fix SimpleResourceReloadListener reload override (#137)
`ResourceReloadListener#apply` was recently renamed to `reload` in yarn. Because Fabric's override wasn't marked as such, it seems it was missed during the update.
This commit is contained in:
parent
b03a9dbda3
commit
31db2b6d1b
1 changed files with 2 additions and 1 deletions
|
@ -44,7 +44,8 @@ import java.util.concurrent.Executor;
|
|||
* @param <T> The data object.
|
||||
*/
|
||||
public interface SimpleResourceReloadListener<T> extends IdentifiableResourceReloadListener {
|
||||
default CompletableFuture<Void> apply(ResourceReloadListener.Helper helper, ResourceManager manager, Profiler loadProfiler, Profiler applyProfiler, Executor loadExecutor, Executor applyExecutor) {
|
||||
@Override
|
||||
default CompletableFuture<Void> reload(ResourceReloadListener.Helper helper, ResourceManager manager, Profiler loadProfiler, Profiler applyProfiler, Executor loadExecutor, Executor applyExecutor) {
|
||||
return load(manager, loadProfiler, loadExecutor).thenCompose(helper::waitForAll).thenCompose(
|
||||
(o) -> apply(o, manager, applyProfiler, applyExecutor)
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue