Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
HaHaWTH committed Nov 20, 2024
1 parent 9edb36c commit 68101d7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public List<String> onTabComplete(@NotNull CommandSender sender, @NotNull Comman
List<String> tabComplete = new ArrayList<>();
if (sender.hasPermission(PermissionsEnum.RELOAD.getPermission()) && args[0].startsWith("r")) {
tabComplete.add("reload");
} else if (sender.hasPermission(PermissionsEnum.HELP.getPermission()) && args[0].startsWith("h")) {
} else if (sender.hasPermission(PermissionsEnum.HELP.getPermission()) && args[0].startsWith("he")) {
tabComplete.add("help");
} else if (sender.hasPermission(PermissionsEnum.CANCEL_PREVIEW.getPermission()) && args[0].startsWith("i")) {
tabComplete.add("cancel");
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/io/wdsj/imagepreviewer/image/ImageLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,13 @@ private static Pair<BufferedImage[], Optional<Integer>> readAllFramesGif(URL url
imageTop = Integer.parseInt(imageDescriptorNode.getAttribute("imageTopPosition"));
}

// Create a full-size frame if necessary
if (previousFrame == null) {
previousFrame = new BufferedImage(
reader.getWidth(i),
reader.getHeight(i),
BufferedImage.TYPE_INT_ARGB
);
}

// Draw the current frame onto the full-size image
BufferedImage combinedFrame = new BufferedImage(
previousFrame.getWidth(),
previousFrame.getHeight(),
Expand Down

0 comments on commit 68101d7

Please sign in to comment.