Update CraftServer.java

This commit is contained in:
FatSaw
2023-02-18 05:42:50 +02:00
parent 13d3cb28e4
commit d8ea0f157a

View File

@@ -1781,7 +1781,7 @@ public final class CraftServer implements Server {
ImageIO.write(image, "PNG", new ByteBufOutputStream(bytebuf));
ByteBuf bytebuf1 = Base64.encode(bytebuf);
return new CraftIconCache("data:image/png;base64," + bytebuf1.toString(Charsets.UTF_8));
return new CraftIconCache("data:image/png;base64," + bytebuf1.toString(Charsets.UTF_8).replace("\n", "")); // Paper - Fix encoding for 1.13+ clients, still compat w/ 1.12 clients
}
@Override