diff --git a/src/main/java/com/replaymod/replay/gui/screen/GuiReplayViewer.java b/src/main/java/com/replaymod/replay/gui/screen/GuiReplayViewer.java index 014b70ed..80b72555 100644 --- a/src/main/java/com/replaymod/replay/gui/screen/GuiReplayViewer.java +++ b/src/main/java/com/replaymod/replay/gui/screen/GuiReplayViewer.java @@ -390,13 +390,8 @@ public class GuiReplayViewer extends GuiScreen { for (final File file : files) { if (Thread.interrupted()) break; try (ReplayFile replayFile = new ZipReplayFile(new ReplayStudio(), file)) { - // TODO add a getThumbBytes method to ReplayStudio - final Image thumb = Optional.ofNullable(replayFile.get("thumb").orNull()).flatMap(stream -> { + final Image thumb = Optional.ofNullable(replayFile.getThumbBytes().orNull()).flatMap(stream -> { try (InputStream in = stream) { - int i = 7; - while (i > 0) { - i -= in.skip(i); - } return Optional.of(Image.read(in)); } catch (IOException e) { e.printStackTrace(); diff --git a/versions/common.gradle b/versions/common.gradle index 18f1fccb..da036ef8 100644 --- a/versions/common.gradle +++ b/versions/common.gradle @@ -305,7 +305,7 @@ dependencies { shadow 'com.github.ReplayMod.JavaBlend:2.79.0:a0696f8' - shadow "com.github.ReplayMod:ReplayStudio:b29955e", shadeExclusions + shadow "com.github.ReplayMod:ReplayStudio:bcffd46", shadeExclusions implementation(jGui){ transitive = false // FG 1.2 puts all MC deps into the compile configuration and we don't want to shade those