Skip to content

Instantly share code, notes, and snippets.

@phit
Last active February 7, 2022 02:46
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save phit/be5b69b76217bb8bab7b1cd752d4c39e to your computer and use it in GitHub Desktop.
Save phit/be5b69b76217bb8bab7b1cd752d4c39e to your computer and use it in GitHub Desktop.

Updating netty manually for Minecraft 1.12

Get your minecraft_server.1.12.2.jar from the root of your server, download the latest netty 4 full package https://netty.io/downloads.html

Open your server jar with 7zip and navigate to minecraft_server.1.12.2.jar\io\netty\

open the netty package you downloaded and go to netty-4.1.70.Final.tar.gz\netty-4.1.70.Final.tar\netty-4.1.70.Final\jar\all-in-one\netty-all-4.1.70.Final.jar\io\netty\

back in the minecraft server jar delete these 6 folders

now simple copy the same 6 folders from the netty package into the minecraft jar

throw the jar back into the root of your server and you are done!

@chaos234
Copy link

chaos234 commented Jul 23, 2018

Could you explain please what this will change for the current downloaded 1.12.2 server version and will this patch added to 1.12.2 and change it maybe to 1.12.3?

Would be nice to know because what whill happen if smth. goes wrong? Safte first ;)

Edit: What about the client side version? Anything to edit here to not run into any conflicts?

@phit
Copy link
Author

phit commented Nov 19, 2018

Could you explain please what this will change for the current downloaded 1.12.2 server version and will this patch added to 1.12.2 and change it maybe to 1.12.3?

Not quite sure what you are trying to say, this simply updates the included netty version for issues like:
repeated spam of this and frequent disconnects
NetworkDispatcher exception io.netty.channel.unix.Errors$NativeIoException: syscall:writev(…) failed: Broken pipe

It doesn't touch any Mojang code.

Would be nice to know because what whill happen if smth. goes wrong? Safte first ;)

Always take backups, but if you mess this up the server probably doesn't even start and you can just download a clean minecraft_server jar file.

Edit: What about the client side version? Anything to edit here to not run into any conflicts?

No the client doesn't care, and software like Spigot and Bungeecord already do this on their side. Forge is the outlier in this case.

Copy link

ghost commented Aug 18, 2020

How do I do this on Forge exactly?

@phit
Copy link
Author

phit commented Aug 19, 2020

this is for Forge or Vanilla

Copy link

ghost commented Aug 19, 2020

i don't see a io directory

@DesolateIntention
Copy link

DesolateIntention commented Sep 15, 2020

Copy link

ghost commented Sep 16, 2020

Caused by: java.lang.NoClassDefFoundError: org/apache/logging/log4j/Level

try reinstalling forge..

@DesolateIntention
Copy link

What do you mean.

@Dr4gulaa
Copy link

Dr4gulaa commented Feb 2, 2021

i actualized and get thats again
https://pastebin.com/0fjyZ2WZ

@GewoonJoey
Copy link

The link with the netty download does not work for me. It takes me to a blank page which only says "Forbidden".

Is there any other link I can use to get the right netty version. I tried downloading it from https://github.com/netty/netty/releases/tag/netty-4.1.37.Final but there I was not able to locate the right file I needed.

@joaco1808
Copy link

hello! when I enter the netty file I do not get the 6 files to replace

@PillowOfBricks
Copy link

For anyone struggling to find the jar folder, the latest versions do not have it for some reason... If you grab 4.1.27 on https://javalibs.com/artifact/io.netty/netty-all, you can follow the steps normally; if you don't want that old of a version, you can go up to v68 before the jar portion disappears

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment