Skip to content

Commit

Permalink
EnumHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
dima-dencep committed Jan 25, 2024
1 parent 9660aea commit 38b740f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -57,7 +57,7 @@ public abstract class MinecraftClientMixin {
value = "HEAD"
),
cancellable = true
)
) // TODO refactor when @WrapMethod
public void rrls$onResourceReloadFailure(Throwable exception, Text resourceName, MinecraftClient.LoadingContext loadingContext, CallbackInfo ci) {
if (!ConfigExpectPlatform.resetResources()) {
Rrls.LOGGER.error("Caught error loading resourcepacks!", exception);
Expand Down
Expand Up @@ -60,6 +60,7 @@ public class ConfigExpectPlatformImpl implements ConfigData {
public boolean earlyPackStatusSend = true;

@ConfigEntry.Category("other")
@ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.BUTTON)
public DoubleLoad doubleLoad = DoubleLoad.FORCE_LOAD;

@ConfigEntry.Category("splash")
Expand Down

0 comments on commit 38b740f

Please sign in to comment.