Skip to content

Commit a95129e

Browse files
committed
Close input stream after being opened
1 parent 2ebd883 commit a95129e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/btw/lowercase/optiboxes/utils/CommonUtils.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@ public static ResourceLocation parseSourceTexture(String source, OptiFineResourc
196196
return null;
197197
}
198198

199+
try {
200+
textureInputStream.close();
201+
} catch (Exception ignored) {
202+
}
203+
199204
return textureId;
200205
}
201206

0 commit comments

Comments
 (0)