Open Plugner opened 3 years ago
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!