Skip to content

Commit

Permalink
[Port] Update to 1.11.2 (v2.5.3)
Browse files Browse the repository at this point in the history
  • Loading branch information
CDAGaming committed Jan 14, 2025
1 parent ee04e23 commit c82b379
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -631,11 +631,11 @@ private void pingServer(final ServerData serverData, final Runnable saver, final
callbackEvent.run();
} catch (UnknownHostException unknownHostException) {
serverData.pingToServer = -1L;
serverData.serverMOTD = 4" + ModUtils.RAW_TRANSLATOR.translate("multiplayer.status.cannot_resolve");
serverData.serverMOTD = 4Can't resolve hostname";
callbackEvent.run();
} catch (Exception ex) {
serverData.pingToServer = -1L;
serverData.serverMOTD = 4" + ModUtils.RAW_TRANSLATOR.translate("multiplayer.status.cannot_connect");
serverData.serverMOTD = 4Can't connect to server.";
callbackEvent.run();
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import net.minecraft.client.gui.GuiScreen;
import net.minecraftforge.fml.client.IModGuiFactory;

import javax.annotation.Nullable;
import java.util.Set;

/**
Expand All @@ -45,6 +46,12 @@ public Set<RuntimeOptionCategoryElement> runtimeGuiCategories() {
return null;
}

@Nullable
@Override
public RuntimeOptionGuiHandler getHandlerFor(RuntimeOptionCategoryElement element) {
return null;
}

@Override
public boolean hasConfigGui() {
return true;
Expand All @@ -54,4 +61,9 @@ public boolean hasConfigGui() {
public GuiScreen createConfigGui(GuiScreen parentScreen) {
return new MainGui(parentScreen);
}

@Override
public Class<? extends GuiScreen> mainConfigGuiClass() {
return MainGui.class;
}
}
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ enabled_platforms=fabric,forge
isLegacy=false
isJarMod=false
# Mapping Info
mc_mappings=39-1.12
mc_mappings=32-1.11
mc_mappings_type=mcp
mc_version=1.12.2
mc_protocol=340
mc_version=1.11.2
mc_protocol=316
display_version=
# Fabric Info
fabric_loader_version=0.16.9
fabric_api_version=
fabric_game_version_range=1.12.2
fabric_game_version_range=1.11.2
fabric_loader_version_range=>=0.12.0
# Forge Info
forge_version=14.23.5.2860
forge_version=13.20.1.2588
fml_version_range=
forge_game_version_range=1.12.2
forge_game_version_range=1.11.2
forge_loader_version_range=
# Deployment Info
versionId=2.5.3
Expand Down

0 comments on commit c82b379

Please sign in to comment.