Update CraftServer.java
This commit is contained in:
@@ -1781,7 +1781,7 @@ public final class CraftServer implements Server {
|
|||||||
ImageIO.write(image, "PNG", new ByteBufOutputStream(bytebuf));
|
ImageIO.write(image, "PNG", new ByteBufOutputStream(bytebuf));
|
||||||
ByteBuf bytebuf1 = Base64.encode(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
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user