Loading...
Beta Modpages Unclaimed

Auto Reconnect Mod

Bodge to "fix" the SocketException bug in 1.18.1

0 Likes
501 Downloads
Created by CodingPupper3033

Description

<h1> Auto Reconnect Mod </h1>

In 1.18.1, there seems to be a bug where sometimes after ~20 seconds of joining a server, it kicks you out due to a ```java.net.SocketException```. I rather have to keep joining the world until it finally lets me login. I made this mod to auto-reconnect you if you end up leaving because of this.

<h3> How to use: </h3>
When you encounter a Socket Exception, a button will appear suggesting enabling auto login.

![img.png](img.png)
Clicking this button will immediately start the process of logging you in once you disconnect due to a SocketException

You will be asked to re-enable the Auto Login upon the first SocketException of a server session.


<h3>How it works: </h3>
When you leave a server, the code will check if the cause of disconnection was a SocketException.

If it is, it will record the ip & port. It will also record that the reason of disconnection was in fact a socket exception.

When the error screen loads, it will check if the enable auto reconnect button was clicked yet. If it wasn't it will show the button, otherwise, it will use the previously recorded address to try logging back in.

Once you go to the Join Multiplayer Screen again, it will disable the autoconnect and make you press the button again. This is so that you don't have to restart to stop the cycle.

<h3> FAQ: </h3>

* Will you update this mod for version so and so?
* Most likely, no. If I have time, or feel like it, maybe, but it seems like it only effects 1.18, so that is the version I'll stick with.
* Fabric?
* Most likely, no. I use forge. This was my first modding experience, and it was hard enough to try finding documentation for forge, I don't want to do it all again.
* Is it bug free?
* Possibly? Maybe? If you find a bug, please let me know. I'll try to fix it, but I also have schoolwork to do.
* Is it a virus?
* No malice-intent was put into this, the code is open-source, so you can see for yourself.


AD Become Premium to remove Ads!

What means Verified?

  • Compatibility: The mod should be compatible with the latest version of Minecraft and be clearly labeled with its supported versions.
  • Functionality: The mod should work as advertised and not cause any game-breaking bugs or crashes.
  • Security: The mod should not contain any malicious code or attempts to steal personal information.
  • Performance: The mod should not cause a significant decrease in the game's performance, such as by causing lag or reducing frame rates.
  • Originality: The mod should be original and not a copy of someone else's work.
  • Up-to-date: The mod should be regularly updated to fix bugs, improve performance, and maintain compatibility with the latest version of Minecraft.
  • Support: The mod should have an active developer who provides support and troubleshooting assistance to users.
  • License: The mod should be released under a clear and open source license that allows others to use, modify, and redistribute the code.
  • Documentation: The mod should come with clear and detailed documentation on how to install and use it.

AD Become Premium to remove Ads!

How to Install

1

Download Forge & Java

Download Forge from the offical Site or here. If you dont have Java installed then install it now from here. After Downloading Forge you can run the file with Java.

2

Prepare

Lounch Minecraft and select your Forge istallation as Version this will create a Folder called Mods.

3

Add Mods

Type Win+R and type %appdata% and open the .minecraft Folder. There will you find your Folder called Mods. Place all Mods you want to play in this Folder

4

Enjoy

You are now Ready. Re-start your Game and start Playing.

More Mods like this

Controlling

Adds a search bar to the Key-Bindings menu

Crafting Tweaks

Allows you to rotate, balance or clear the crafting matrix by the press of a button, in any (supported) crafting window.

Client Tweaks

There, I fixed Minecraft for you. Various optional tweaks to improve Minecraft Quality of Life.

TrashSlot

Adds a trash slot to the inventory screen that allows deletion of unwanted items.

TipTheScales

Allows for more options when adjusting the GUIScale option as well as making it a slider.

Configured

Automatic in-game configuration menus for every mod!

Charm

A vanilla+ mod inspired by Quark, adding lots of small things to the game.