Hi, I'm creating a mod and I was trying to link an event to the reloading of resources, it asked for a CompletableFuture and I did that, but now the game won't stop loading, why does this happen?
@SubscribeEvent
public static void onResourceReload(RegisterClientReloadListenersEvent event) {
event.registerReloadListener((pPreparationBarrier, pResourceManager, pPreparationsProfiler, pReloadProfiler, pBackgroundExecutor, pGameExecutor) ->
CompletableFuture.runAsync(FluidDisplayWidget::clearFluidTextureCache, pGameExecutor)
);
}