You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had the same problem as you and I found the solution. On Minecraft Wiki you can found, that servers.dat is stored as an uncompressed NBT file, but this NBT library automatically converts the output file into gzip, so you have to turn off the compression.
The last line should be like this: NBTUtil.write(compoundTag, "output.dat", false);
My code: {servers:[{name:Server,ip:"0.0.0.0"}]}
Minecraft Generated code: {servers:[{name:Servidor,ip:"0.0.0.0"}]}
My tests
But the binary is completely different:
MC Generated:
Generated by my code:
Thanks!
The text was updated successfully, but these errors were encountered: