Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenny-Hui committed Nov 3, 2024
1 parent 95c6760 commit 5a6a9a3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public static AttributedString ensureStrFonts(String text, Font font) {
}

public static BufferedImage readBufferedImage(Identifier identifier) {
final BufferedImage[] result = {null};
final BufferedImage[] result = new BufferedImage[]{null};
ResourceManagerHelper.readResource(identifier, (is) -> {
try {
result[0] = ImageIO.read(is);
Expand All @@ -176,7 +176,7 @@ public static BufferedImage readBufferedImage(Identifier identifier) {
}

public static Font readFont(Identifier identifier) {
final Font[] result = {null};
final Font[] result = new Font[]{null};
ResourceManagerHelper.readResource(identifier, (is) -> {
try {
result[0] = Font.createFont(Font.TRUETYPE_FONT, is);
Expand Down

0 comments on commit 5a6a9a3

Please sign in to comment.