Convert JPG images to PNG
Minecraft 1.20.3 no longer supports loading JPG images.
This commit is contained in:
@@ -80,7 +80,7 @@ public class Utils {
|
||||
static {
|
||||
Image thumbnail;
|
||||
try {
|
||||
thumbnail = Image.read(getResourceAsStream("/default_thumb.jpg"));
|
||||
thumbnail = Image.read(getResourceAsStream("/default_thumb.png"));
|
||||
} catch (Exception e) {
|
||||
thumbnail = new Image(1, 1);
|
||||
e.printStackTrace();
|
||||
|
||||
@@ -28,7 +28,7 @@ import net.minecraft.client.texture.NativeImage;
|
||||
import java.nio.ByteBuffer;
|
||||
|
||||
public class GuiVideoRenderer extends GuiScreen implements Tickable {
|
||||
private static final Identifier NO_PREVIEW_TEXTURE = new Identifier("replaymod", "logo.jpg");
|
||||
private static final Identifier NO_PREVIEW_TEXTURE = new Identifier("replaymod", "logo.png");
|
||||
|
||||
private final VideoRenderer renderer;
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 27 KiB |
BIN
src/main/resources/assets/replaymod/logo.png
Normal file
BIN
src/main/resources/assets/replaymod/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 27 KiB |
BIN
src/main/resources/default_thumb.png
Normal file
BIN
src/main/resources/default_thumb.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
Reference in New Issue
Block a user